Documentation
¶
Index ¶
- Constants
- Variables
- func InitServer(t *testing.T, config ...string) (app_context.Context, *user_session_default.Users, bare_bones_server.Server)
- type Basic
- func (*Basic) Descriptor() ([]byte, []int)deprecated
- func (x *Basic) GetVboolf() bool
- func (x *Basic) GetVboolt() bool
- func (x *Basic) GetVbytes() []byte
- func (x *Basic) GetVdouble() float64
- func (x *Basic) GetVfixed32() uint32
- func (x *Basic) GetVfixed64() uint64
- func (x *Basic) GetVfloat() float32
- func (x *Basic) GetVint32() int32
- func (x *Basic) GetVint32_1() int32
- func (x *Basic) GetVint64() int64
- func (x *Basic) GetVint64_2() int64
- func (x *Basic) GetVsfixed32() int32
- func (x *Basic) GetVsfixed32_1() int32
- func (x *Basic) GetVsfixed64() int64
- func (x *Basic) GetVsfixed64_2() int64
- func (x *Basic) GetVsint32() int32
- func (x *Basic) GetVsint32_1() int32
- func (x *Basic) GetVsint64() int64
- func (x *Basic) GetVsint64_2() int64
- func (x *Basic) GetVstring() string
- func (x *Basic) GetVuint32() uint32
- func (x *Basic) GetVuint64() uint64
- func (*Basic) ProtoMessage()
- func (x *Basic) ProtoReflect() protoreflect.Message
- func (x *Basic) Reset()
- func (x *Basic) String() string
- type BasicEndpoint
- type BasicLogic
- type EchoTokenEndpoint
- type Embedded
- func (*Embedded) Descriptor() ([]byte, []int)deprecated
- func (x *Embedded) GetF1() *Basic
- func (x *Embedded) GetF2() *Repeated
- func (x *Embedded) GetF3() []*Basic
- func (*Embedded) ProtoMessage()
- func (x *Embedded) ProtoReflect() protoreflect.Message
- func (x *Embedded) Reset()
- func (x *Embedded) String() string
- type EmbeddedEndpoint
- type EmbeddedLogic
- type GrpcTestService
- type Repeated
- func (*Repeated) Descriptor() ([]byte, []int)deprecated
- func (x *Repeated) GetVboolf() []bool
- func (x *Repeated) GetVboolt() []bool
- func (x *Repeated) GetVbytes() [][]byte
- func (x *Repeated) GetVdouble() []float64
- func (x *Repeated) GetVfixed32() []uint32
- func (x *Repeated) GetVfixed64() []uint64
- func (x *Repeated) GetVfloat() []float32
- func (x *Repeated) GetVsfixed32() []int32
- func (x *Repeated) GetVsfixed64() []int64
- func (x *Repeated) GetVsint32() []int32
- func (x *Repeated) GetVsint64() []int64
- func (x *Repeated) GetVstring() []string
- func (x *Repeated) GetVuint32() []uint32
- func (x *Repeated) GetVuint64() []uint64
- func (*Repeated) ProtoMessage()
- func (x *Repeated) ProtoReflect() protoreflect.Message
- func (x *Repeated) Reset()
- func (x *Repeated) String() string
- type RepeatedEndpoint
- type RepeatedLogic
- type User
Constants ¶
View Source
const PackageName = "grpc_api"
Variables ¶
View Source
var File_grpctest_proto protoreflect.FileDescriptor
Functions ¶
func InitServer ¶
func InitServer(t *testing.T, config ...string) (app_context.Context, *user_session_default.Users, bare_bones_server.Server)
Types ¶
type Basic ¶
type Basic struct {
Vsint32 int32 `protobuf:"zigzag32,1,opt,name=vsint32,proto3" json:"vsint32,omitempty"`
Vsint64 int64 `protobuf:"zigzag64,2,opt,name=vsint64,proto3" json:"vsint64,omitempty"`
Vuint32 uint32 `protobuf:"varint,3,opt,name=vuint32,proto3" json:"vuint32,omitempty"`
Vuint64 uint64 `protobuf:"varint,4,opt,name=vuint64,proto3" json:"vuint64,omitempty"`
Vsfixed32 int32 `protobuf:"fixed32,5,opt,name=vsfixed32,proto3" json:"vsfixed32,omitempty"`
Vsfixed64 int64 `protobuf:"fixed64,6,opt,name=vsfixed64,proto3" json:"vsfixed64,omitempty"`
Vfixed32 uint32 `protobuf:"fixed32,7,opt,name=vfixed32,proto3" json:"vfixed32,omitempty"`
Vfixed64 uint64 `protobuf:"fixed64,8,opt,name=vfixed64,proto3" json:"vfixed64,omitempty"`
Vfloat float32 `protobuf:"fixed32,9,opt,name=vfloat,proto3" json:"vfloat,omitempty"`
Vdouble float64 `protobuf:"fixed64,10,opt,name=vdouble,proto3" json:"vdouble,omitempty"`
Vboolt bool `protobuf:"varint,11,opt,name=vboolt,proto3" json:"vboolt,omitempty"`
Vboolf bool `protobuf:"varint,12,opt,name=vboolf,proto3" json:"vboolf,omitempty"`
Vstring string `protobuf:"bytes,13,opt,name=vstring,proto3" json:"vstring,omitempty"`
Vbytes []byte `protobuf:"bytes,14,opt,name=vbytes,proto3" json:"vbytes,omitempty"`
Vint32 int32 `protobuf:"varint,15,opt,name=vint32,proto3" json:"vint32,omitempty"`
Vint64 int64 `protobuf:"varint,16,opt,name=vint64,proto3" json:"vint64,omitempty"`
Vint32_1 int32 `protobuf:"varint,17,opt,name=vint32_1,json=vint321,proto3" json:"vint32_1,omitempty"`
Vint64_2 int64 `protobuf:"varint,18,opt,name=vint64_2,json=vint642,proto3" json:"vint64_2,omitempty"`
Vsint32_1 int32 `protobuf:"zigzag32,19,opt,name=vsint32_1,json=vsint321,proto3" json:"vsint32_1,omitempty"`
Vsint64_2 int64 `protobuf:"zigzag64,20,opt,name=vsint64_2,json=vsint642,proto3" json:"vsint64_2,omitempty"`
Vsfixed32_1 int32 `protobuf:"fixed32,21,opt,name=vsfixed32_1,json=vsfixed321,proto3" json:"vsfixed32_1,omitempty"`
Vsfixed64_2 int64 `protobuf:"fixed64,22,opt,name=vsfixed64_2,json=vsfixed642,proto3" json:"vsfixed64_2,omitempty"`
// contains filtered or unexported fields
}
func (*Basic) Descriptor
deprecated
func (*Basic) GetVdouble ¶
func (*Basic) GetVfixed32 ¶
func (*Basic) GetVfixed64 ¶
func (*Basic) GetVint32_1 ¶
func (*Basic) GetVint64_2 ¶
func (*Basic) GetVsfixed32 ¶
func (*Basic) GetVsfixed32_1 ¶
func (*Basic) GetVsfixed64 ¶
func (*Basic) GetVsfixed64_2 ¶
func (*Basic) GetVsint32 ¶
func (*Basic) GetVsint32_1 ¶
func (*Basic) GetVsint64 ¶
func (*Basic) GetVsint64_2 ¶
func (*Basic) GetVstring ¶
func (*Basic) GetVuint32 ¶
func (*Basic) GetVuint64 ¶
func (*Basic) ProtoMessage ¶
func (*Basic) ProtoMessage()
func (*Basic) ProtoReflect ¶
func (x *Basic) ProtoReflect() protoreflect.Message
type BasicEndpoint ¶
type BasicEndpoint struct {
api_server.EndpointBase
}
func NewBasicEndpoint ¶
func NewBasicEndpoint(opName ...string) *BasicEndpoint
func (*BasicEndpoint) HandleRequest ¶
func (e *BasicEndpoint) HandleRequest(request api_server.Request) error
func (*BasicEndpoint) NewRequestMessage ¶
func (e *BasicEndpoint) NewRequestMessage() interface{}
func (*BasicEndpoint) NewResponseMessage ¶
func (e *BasicEndpoint) NewResponseMessage() interface{}
type BasicLogic ¶
type BasicLogic = Basic
type EchoTokenEndpoint ¶
type EchoTokenEndpoint struct {
api_server.EndpointBase
}
func NewEchoTokenEndpoint ¶
func NewEchoTokenEndpoint(opName ...string) *EchoTokenEndpoint
func (*EchoTokenEndpoint) HandleRequest ¶
func (e *EchoTokenEndpoint) HandleRequest(request api_server.Request) error
func (*EchoTokenEndpoint) IsRequestPayloadNeeded ¶
func (e *EchoTokenEndpoint) IsRequestPayloadNeeded() bool
type Embedded ¶
type Embedded struct {
F1 *Basic `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"`
F2 *Repeated `protobuf:"bytes,2,opt,name=f2,proto3" json:"f2,omitempty"`
F3 []*Basic `protobuf:"bytes,3,rep,name=f3,proto3" json:"f3,omitempty"`
// contains filtered or unexported fields
}
func (*Embedded) Descriptor
deprecated
func (*Embedded) ProtoMessage ¶
func (*Embedded) ProtoMessage()
func (*Embedded) ProtoReflect ¶
func (x *Embedded) ProtoReflect() protoreflect.Message
type EmbeddedEndpoint ¶
type EmbeddedEndpoint struct {
api_server.EndpointBase
}
func NewEmbeddedEndpoint ¶
func NewEmbeddedEndpoint(opName ...string) *EmbeddedEndpoint
func (*EmbeddedEndpoint) HandleRequest ¶
func (e *EmbeddedEndpoint) HandleRequest(request api_server.Request) error
func (*EmbeddedEndpoint) NewRequestMessage ¶
func (e *EmbeddedEndpoint) NewRequestMessage() interface{}
func (*EmbeddedEndpoint) NewResponseMessage ¶
func (e *EmbeddedEndpoint) NewResponseMessage() interface{}
type EmbeddedLogic ¶
type EmbeddedLogic = Embedded
type GrpcTestService ¶
type GrpcTestService struct {
api_server.ServiceBase
}
func NewGrpcTestService ¶
func NewGrpcTestService(multitenancy ...bool) *GrpcTestService
type Repeated ¶
type Repeated struct {
Vsint32 []int32 `protobuf:"zigzag32,1,rep,packed,name=vsint32,proto3" json:"vsint32,omitempty"`
Vsint64 []int64 `protobuf:"zigzag64,2,rep,packed,name=vsint64,proto3" json:"vsint64,omitempty"`
Vuint32 []uint32 `protobuf:"varint,3,rep,packed,name=vuint32,proto3" json:"vuint32,omitempty"`
Vuint64 []uint64 `protobuf:"varint,4,rep,packed,name=vuint64,proto3" json:"vuint64,omitempty"`
Vsfixed32 []int32 `protobuf:"fixed32,5,rep,packed,name=vsfixed32,proto3" json:"vsfixed32,omitempty"`
Vsfixed64 []int64 `protobuf:"fixed64,6,rep,packed,name=vsfixed64,proto3" json:"vsfixed64,omitempty"`
Vfixed32 []uint32 `protobuf:"fixed32,7,rep,packed,name=vfixed32,proto3" json:"vfixed32,omitempty"`
Vfixed64 []uint64 `protobuf:"fixed64,8,rep,packed,name=vfixed64,proto3" json:"vfixed64,omitempty"`
Vfloat []float32 `protobuf:"fixed32,9,rep,packed,name=vfloat,proto3" json:"vfloat,omitempty"`
Vdouble []float64 `protobuf:"fixed64,10,rep,packed,name=vdouble,proto3" json:"vdouble,omitempty"`
Vboolt []bool `protobuf:"varint,11,rep,packed,name=vboolt,proto3" json:"vboolt,omitempty"`
Vboolf []bool `protobuf:"varint,12,rep,packed,name=vboolf,proto3" json:"vboolf,omitempty"`
Vstring []string `protobuf:"bytes,13,rep,name=vstring,proto3" json:"vstring,omitempty"`
Vbytes [][]byte `protobuf:"bytes,14,rep,name=vbytes,proto3" json:"vbytes,omitempty"`
// contains filtered or unexported fields
}
func (*Repeated) Descriptor
deprecated
func (*Repeated) GetVdouble ¶
func (*Repeated) GetVfixed32 ¶
func (*Repeated) GetVfixed64 ¶
func (*Repeated) GetVsfixed32 ¶
func (*Repeated) GetVsfixed64 ¶
func (*Repeated) GetVsint32 ¶
func (*Repeated) GetVsint64 ¶
func (*Repeated) GetVstring ¶
func (*Repeated) GetVuint32 ¶
func (*Repeated) GetVuint64 ¶
func (*Repeated) ProtoMessage ¶
func (*Repeated) ProtoMessage()
func (*Repeated) ProtoReflect ¶
func (x *Repeated) ProtoReflect() protoreflect.Message
type RepeatedEndpoint ¶
type RepeatedEndpoint struct {
api_server.EndpointBase
}
func NewRepeatedEndpoint ¶
func NewRepeatedEndpoint(opName ...string) *RepeatedEndpoint
func (*RepeatedEndpoint) HandleRequest ¶
func (e *RepeatedEndpoint) HandleRequest(request api_server.Request) error
func (*RepeatedEndpoint) NewRequestMessage ¶
func (e *RepeatedEndpoint) NewRequestMessage() interface{}
func (*RepeatedEndpoint) NewResponseMessage ¶
func (e *RepeatedEndpoint) NewResponseMessage() interface{}
type RepeatedLogic ¶
type RepeatedLogic = Repeated
type User ¶
type User = user_default.User
Click to show internal directories.
Click to hide internal directories.