Documentation ¶
Index ¶
- Constants
- func StringFromMd(key string, md metadata.MD) (string, error)
- type AuthData
- func (i AuthData) ApplicationId() (int, error)
- func (i AuthData) DeviceId() (int, error)
- func (i AuthData) DeviceToken() (string, error)
- func (i AuthData) DomainId() (int, error)
- func (i AuthData) ServiceId() (int, error)
- func (i AuthData) SystemId() (int, error)
- func (i AuthData) UserId() (int, error)
- func (i AuthData) UserToken() (string, error)
- type HandlerFunc
- type Middleware
- type Mux
- type Server
Constants ¶
View Source
const ( ApplicationIdHeader = "x-application-identity" UserIdHeader = "x-user-identity" DeviceIdHeader = "x-device-identity" ServiceIdHeader = "x-service-identity" DomainIdHeader = "x-domain-identity" SystemIdHeader = "x-system-identity" UserTokenHeader = "x-user-token" DeviceTokenHeader = "x-device-token" )
View Source
const (
DefaultMaxSizeByte = 64 * 1024 * 1024
)
View Source
const (
ProxyMethodNameHeader = "proxy_method_name"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerFunc ¶
type Middleware ¶
type Middleware func(next HandlerFunc) HandlerFunc
type Mux ¶
type Mux struct { isp.UnimplementedBackendServiceServer // contains filtered or unexported fields }
func (*Mux) RequestStream ¶
func (m *Mux) RequestStream(_ isp.BackendService_RequestStreamServer) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func DefaultServer ¶
func DefaultServer(restOptions ...grpc.ServerOption) *Server
func NewServer ¶
func NewServer(opts ...grpc.ServerOption) *Server
func (*Server) ListenAndServe ¶
func (*Server) Upgrade ¶
func (s *Server) Upgrade(service isp.BackendServiceServer)
Click to show internal directories.
Click to hide internal directories.