Documentation ¶
Index ¶
- func RegisterGRPCCheckServer(s *grpc.Server, srv GRPCCheckServer)
- func RegisterGRPCServiceServer(s *grpc.Server, srv GRPCServiceServer)
- type GRPCByteResponse
- func (*GRPCByteResponse) Descriptor() ([]byte, []int)
- func (m *GRPCByteResponse) GetData() []byte
- func (m *GRPCByteResponse) GetError() string
- func (m *GRPCByteResponse) GetErrorCode() int32
- func (*GRPCByteResponse) ProtoMessage()
- func (m *GRPCByteResponse) Reset()
- func (m *GRPCByteResponse) String() string
- func (m *GRPCByteResponse) XXX_DiscardUnknown()
- func (m *GRPCByteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GRPCByteResponse) XXX_Merge(src proto.Message)
- func (m *GRPCByteResponse) XXX_Size() int
- func (m *GRPCByteResponse) XXX_Unmarshal(b []byte) error
- type GRPCCheckClient
- type GRPCCheckServer
- type GRPCMessage
- func (*GRPCMessage) Descriptor() ([]byte, []int)
- func (m *GRPCMessage) GetBranch() string
- func (m *GRPCMessage) GetData() []byte
- func (m *GRPCMessage) GetIsRestricted() bool
- func (m *GRPCMessage) GetIsRoleBased() bool
- func (m *GRPCMessage) GetName() string
- func (m *GRPCMessage) GetToken() string
- func (*GRPCMessage) ProtoMessage()
- func (m *GRPCMessage) Reset()
- func (m *GRPCMessage) String() string
- func (m *GRPCMessage) XXX_DiscardUnknown()
- func (m *GRPCMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GRPCMessage) XXX_Merge(src proto.Message)
- func (m *GRPCMessage) XXX_Size() int
- func (m *GRPCMessage) XXX_Unmarshal(b []byte) error
- type GRPCRequest
- func (*GRPCRequest) Descriptor() ([]byte, []int)
- func (m *GRPCRequest) GetGrpcMessage() *GRPCMessage
- func (*GRPCRequest) ProtoMessage()
- func (m *GRPCRequest) Reset()
- func (m *GRPCRequest) String() string
- func (m *GRPCRequest) XXX_DiscardUnknown()
- func (m *GRPCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GRPCRequest) XXX_Merge(src proto.Message)
- func (m *GRPCRequest) XXX_Size() int
- func (m *GRPCRequest) XXX_Unmarshal(b []byte) error
- type GRPCResponse
- func (*GRPCResponse) Descriptor() ([]byte, []int)
- func (m *GRPCResponse) GetData() string
- func (*GRPCResponse) ProtoMessage()
- func (m *GRPCResponse) Reset()
- func (m *GRPCResponse) String() string
- func (m *GRPCResponse) XXX_DiscardUnknown()
- func (m *GRPCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GRPCResponse) XXX_Merge(src proto.Message)
- func (m *GRPCResponse) XXX_Size() int
- func (m *GRPCResponse) XXX_Unmarshal(b []byte) error
- type GRPCServiceClient
- type GRPCServiceServer
- type UnimplementedGRPCCheckServer
- type UnimplementedGRPCServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGRPCCheckServer ¶
func RegisterGRPCCheckServer(s *grpc.Server, srv GRPCCheckServer)
func RegisterGRPCServiceServer ¶
func RegisterGRPCServiceServer(s *grpc.Server, srv GRPCServiceServer)
Types ¶
type GRPCByteResponse ¶
type GRPCByteResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` ErrorCode int32 `protobuf:"varint,2,opt,name=errorCode,proto3" json:"errorCode,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GRPCByteResponse) Descriptor ¶
func (*GRPCByteResponse) Descriptor() ([]byte, []int)
func (*GRPCByteResponse) GetData ¶
func (m *GRPCByteResponse) GetData() []byte
func (*GRPCByteResponse) GetError ¶
func (m *GRPCByteResponse) GetError() string
func (*GRPCByteResponse) GetErrorCode ¶
func (m *GRPCByteResponse) GetErrorCode() int32
func (*GRPCByteResponse) ProtoMessage ¶
func (*GRPCByteResponse) ProtoMessage()
func (*GRPCByteResponse) Reset ¶
func (m *GRPCByteResponse) Reset()
func (*GRPCByteResponse) String ¶
func (m *GRPCByteResponse) String() string
func (*GRPCByteResponse) XXX_DiscardUnknown ¶
func (m *GRPCByteResponse) XXX_DiscardUnknown()
func (*GRPCByteResponse) XXX_Marshal ¶
func (m *GRPCByteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GRPCByteResponse) XXX_Merge ¶
func (m *GRPCByteResponse) XXX_Merge(src proto.Message)
func (*GRPCByteResponse) XXX_Size ¶
func (m *GRPCByteResponse) XXX_Size() int
func (*GRPCByteResponse) XXX_Unmarshal ¶
func (m *GRPCByteResponse) XXX_Unmarshal(b []byte) error
type GRPCCheckClient ¶
type GRPCCheckClient interface {
GRPCCheck(ctx context.Context, in *GRPCRequest, opts ...grpc.CallOption) (*GRPCResponse, error)
}
GRPCCheckClient is the client API for GRPCCheck service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCCheckClient ¶
func NewGRPCCheckClient(cc grpc.ClientConnInterface) GRPCCheckClient
type GRPCCheckServer ¶
type GRPCCheckServer interface {
GRPCCheck(context.Context, *GRPCRequest) (*GRPCResponse, error)
}
GRPCCheckServer is the server API for GRPCCheck service.
type GRPCMessage ¶
type GRPCMessage struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` IsRestricted bool `protobuf:"varint,3,opt,name=isRestricted,proto3" json:"isRestricted,omitempty"` IsRoleBased bool `protobuf:"varint,4,opt,name=isRoleBased,proto3" json:"isRoleBased,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` Branch string `protobuf:"bytes,6,opt,name=branch,proto3" json:"branch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GRPCMessage) Descriptor ¶
func (*GRPCMessage) Descriptor() ([]byte, []int)
func (*GRPCMessage) GetBranch ¶ added in v1.2.0
func (m *GRPCMessage) GetBranch() string
func (*GRPCMessage) GetData ¶
func (m *GRPCMessage) GetData() []byte
func (*GRPCMessage) GetIsRestricted ¶
func (m *GRPCMessage) GetIsRestricted() bool
func (*GRPCMessage) GetIsRoleBased ¶
func (m *GRPCMessage) GetIsRoleBased() bool
func (*GRPCMessage) GetName ¶
func (m *GRPCMessage) GetName() string
func (*GRPCMessage) GetToken ¶
func (m *GRPCMessage) GetToken() string
func (*GRPCMessage) ProtoMessage ¶
func (*GRPCMessage) ProtoMessage()
func (*GRPCMessage) Reset ¶
func (m *GRPCMessage) Reset()
func (*GRPCMessage) String ¶
func (m *GRPCMessage) String() string
func (*GRPCMessage) XXX_DiscardUnknown ¶
func (m *GRPCMessage) XXX_DiscardUnknown()
func (*GRPCMessage) XXX_Marshal ¶
func (m *GRPCMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GRPCMessage) XXX_Merge ¶
func (m *GRPCMessage) XXX_Merge(src proto.Message)
func (*GRPCMessage) XXX_Size ¶
func (m *GRPCMessage) XXX_Size() int
func (*GRPCMessage) XXX_Unmarshal ¶
func (m *GRPCMessage) XXX_Unmarshal(b []byte) error
type GRPCRequest ¶
type GRPCRequest struct { GrpcMessage *GRPCMessage `protobuf:"bytes,1,opt,name=grpcMessage,proto3" json:"grpcMessage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GRPCRequest) Descriptor ¶
func (*GRPCRequest) Descriptor() ([]byte, []int)
func (*GRPCRequest) GetGrpcMessage ¶
func (m *GRPCRequest) GetGrpcMessage() *GRPCMessage
func (*GRPCRequest) ProtoMessage ¶
func (*GRPCRequest) ProtoMessage()
func (*GRPCRequest) Reset ¶
func (m *GRPCRequest) Reset()
func (*GRPCRequest) String ¶
func (m *GRPCRequest) String() string
func (*GRPCRequest) XXX_DiscardUnknown ¶
func (m *GRPCRequest) XXX_DiscardUnknown()
func (*GRPCRequest) XXX_Marshal ¶
func (m *GRPCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GRPCRequest) XXX_Merge ¶
func (m *GRPCRequest) XXX_Merge(src proto.Message)
func (*GRPCRequest) XXX_Size ¶
func (m *GRPCRequest) XXX_Size() int
func (*GRPCRequest) XXX_Unmarshal ¶
func (m *GRPCRequest) XXX_Unmarshal(b []byte) error
type GRPCResponse ¶
type GRPCResponse struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GRPCResponse) Descriptor ¶
func (*GRPCResponse) Descriptor() ([]byte, []int)
func (*GRPCResponse) GetData ¶
func (m *GRPCResponse) GetData() string
func (*GRPCResponse) ProtoMessage ¶
func (*GRPCResponse) ProtoMessage()
func (*GRPCResponse) Reset ¶
func (m *GRPCResponse) Reset()
func (*GRPCResponse) String ¶
func (m *GRPCResponse) String() string
func (*GRPCResponse) XXX_DiscardUnknown ¶
func (m *GRPCResponse) XXX_DiscardUnknown()
func (*GRPCResponse) XXX_Marshal ¶
func (m *GRPCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GRPCResponse) XXX_Merge ¶
func (m *GRPCResponse) XXX_Merge(src proto.Message)
func (*GRPCResponse) XXX_Size ¶
func (m *GRPCResponse) XXX_Size() int
func (*GRPCResponse) XXX_Unmarshal ¶
func (m *GRPCResponse) XXX_Unmarshal(b []byte) error
type GRPCServiceClient ¶
type GRPCServiceClient interface {
GRPCHandler(ctx context.Context, in *GRPCRequest, opts ...grpc.CallOption) (*GRPCByteResponse, error)
}
GRPCServiceClient is the client API for GRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCServiceClient ¶
func NewGRPCServiceClient(cc grpc.ClientConnInterface) GRPCServiceClient
type GRPCServiceServer ¶
type GRPCServiceServer interface {
GRPCHandler(context.Context, *GRPCRequest) (*GRPCByteResponse, error)
}
GRPCServiceServer is the server API for GRPCService service.
type UnimplementedGRPCCheckServer ¶
type UnimplementedGRPCCheckServer struct { }
UnimplementedGRPCCheckServer can be embedded to have forward compatible implementations.
func (*UnimplementedGRPCCheckServer) GRPCCheck ¶
func (*UnimplementedGRPCCheckServer) GRPCCheck(ctx context.Context, req *GRPCRequest) (*GRPCResponse, error)
type UnimplementedGRPCServiceServer ¶
type UnimplementedGRPCServiceServer struct { }
UnimplementedGRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGRPCServiceServer) GRPCHandler ¶
func (*UnimplementedGRPCServiceServer) GRPCHandler(ctx context.Context, req *GRPCRequest) (*GRPCByteResponse, error)