Documentation ¶
Index ¶
- Variables
- func RegisterContextsServer(s *grpc.Server, srv ContextsServer)
- type Context
- func (*Context) Descriptor() ([]byte, []int)deprecated
- func (x *Context) GetContextType() string
- func (x *Context) GetCurrent() bool
- func (x *Context) GetName() string
- func (*Context) ProtoMessage()
- func (x *Context) ProtoReflect() protoreflect.Message
- func (x *Context) Reset()
- func (x *Context) String() string
- type ContextsClient
- type ContextsServer
- type ListRequest
- type ListResponse
- type SetCurrentRequest
- type SetCurrentResponse
- type UnimplementedContextsServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protos_contexts_v1_contexts_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContextsServer ¶
func RegisterContextsServer(s *grpc.Server, srv ContextsServer)
Types ¶
type Context ¶
type Context struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ContextType string `protobuf:"bytes,2,opt,name=contextType,proto3" json:"contextType,omitempty"` Current bool `protobuf:"varint,3,opt,name=current,proto3" json:"current,omitempty"` // contains filtered or unexported fields }
func (*Context) Descriptor
deprecated
func (*Context) GetContextType ¶
func (*Context) GetCurrent ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
type ContextsClient ¶
type ContextsClient interface { // Sets the current request for all calls SetCurrent(ctx context.Context, in *SetCurrentRequest, opts ...grpc.CallOption) (*SetCurrentResponse, error) // Returns the list of existing contexts List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
ContextsClient is the client API for Contexts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContextsClient ¶
func NewContextsClient(cc grpc.ClientConnInterface) ContextsClient
type ContextsServer ¶
type ContextsServer interface { // Sets the current request for all calls SetCurrent(context.Context, *SetCurrentRequest) (*SetCurrentResponse, error) // Returns the list of existing contexts List(context.Context, *ListRequest) (*ListResponse, error) }
ContextsServer is the server API for Contexts service.
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetContexts ¶
func (x *ListResponse) GetContexts() []*Context
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type SetCurrentRequest ¶
type SetCurrentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SetCurrentRequest) Descriptor
deprecated
func (*SetCurrentRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetCurrentRequest.ProtoReflect.Descriptor instead.
func (*SetCurrentRequest) GetName ¶
func (x *SetCurrentRequest) GetName() string
func (*SetCurrentRequest) ProtoMessage ¶
func (*SetCurrentRequest) ProtoMessage()
func (*SetCurrentRequest) ProtoReflect ¶
func (x *SetCurrentRequest) ProtoReflect() protoreflect.Message
func (*SetCurrentRequest) Reset ¶
func (x *SetCurrentRequest) Reset()
func (*SetCurrentRequest) String ¶
func (x *SetCurrentRequest) String() string
type SetCurrentResponse ¶
type SetCurrentResponse struct {
// contains filtered or unexported fields
}
func (*SetCurrentResponse) Descriptor
deprecated
func (*SetCurrentResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetCurrentResponse.ProtoReflect.Descriptor instead.
func (*SetCurrentResponse) ProtoMessage ¶
func (*SetCurrentResponse) ProtoMessage()
func (*SetCurrentResponse) ProtoReflect ¶
func (x *SetCurrentResponse) ProtoReflect() protoreflect.Message
func (*SetCurrentResponse) Reset ¶
func (x *SetCurrentResponse) Reset()
func (*SetCurrentResponse) String ¶
func (x *SetCurrentResponse) String() string
type UnimplementedContextsServer ¶
type UnimplementedContextsServer struct { }
UnimplementedContextsServer can be embedded to have forward compatible implementations.
func (*UnimplementedContextsServer) List ¶
func (*UnimplementedContextsServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedContextsServer) SetCurrent ¶
func (*UnimplementedContextsServer) SetCurrent(context.Context, *SetCurrentRequest) (*SetCurrentResponse, error)
Click to show internal directories.
Click to hide internal directories.