Documentation ¶
Index ¶
- func Marshal(m proto.Message) ([]byte, error)
- func Unmarshal(b []byte, m proto.Message) error
- type Error
- type Forward
- type Helper
- func (h Helper) Bind(c *gin.Context, obj interface{}) error
- func (h Helper) BindQuery(c *gin.Context, obj interface{}) error
- func (h Helper) BindSession(c *gin.Context) (session *sessionid.Session, e error)
- func (h Helper) BindURI(c *gin.Context, obj interface{}) (e error)
- func (h Helper) BindUserdata(c *gin.Context) (userdata *sessionid.Session, e error)
- func (h Helper) BindWith(c *gin.Context, obj interface{}, b binding.Binding) (e error)
- func (h Helper) CheckRoot(c *gin.Context)
- func (h Helper) CheckWebsocket(c *gin.Context)
- func (h Helper) Compression() gin.HandlerFunc
- func (h Helper) Error(c *gin.Context, e error)
- func (h Helper) GetToken(c *gin.Context) string
- func (h Helper) NegotiateFilesystem(c *gin.Context, fs http.FileSystem, path string, index bool)
- func (h Helper) NegotiateObject(c *gin.Context, modtime time.Time, name string, obj interface{})
- func (h Helper) NewContext(c *gin.Context) context.Context
- func (h Helper) Response(c *gin.Context, code int, data interface{})
- func (h Helper) ResponseError(c *gin.Context, err Error)
- func (h Helper) ShouldBindSession(c *gin.Context) (session *sessionid.Session, e error)
- func (h Helper) ShouldBindUserdata(c *gin.Context) (userdata *sessionid.Session, e error)
- func (h Helper) ToHTTPError(c *gin.Context, name string, e error)
- func (h Helper) Websocket(c *gin.Context, responseHeader http.Header) (conn Websocket, e error)
- type IHelper
- type Websocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Forward ¶
type Helper ¶
type Helper int
func (Helper) BindSession ¶
func (Helper) BindUserdata ¶
func (Helper) CheckWebsocket ¶
func (Helper) Compression ¶
func (h Helper) Compression() gin.HandlerFunc
func (Helper) NegotiateFilesystem ¶
func (Helper) NegotiateObject ¶
func (Helper) ShouldBindSession ¶
func (Helper) ShouldBindUserdata ¶
type IHelper ¶
type IHelper interface {
Register(*grpc.ClientConn, *gin.RouterGroup)
}
type Websocket ¶
func (Websocket) SendBinary ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.