github.com/blend/go-sdk@v1.20220411.3/web/result.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package web
     9  
    10  // Result is the result of a controller.
    11  type Result interface {
    12  	Render(ctx *Ctx) error
    13  }
    14  
    15  // ResultPreRender is a result that has a PreRender step.
    16  type ResultPreRender interface {
    17  	PreRender(ctx *Ctx) error
    18  }
    19  
    20  // ResultPostRender is a result that has a PostRender step.
    21  type ResultPostRender interface {
    22  	PostRender(ctx *Ctx) error
    23  }