v1

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetContextType

func (x *Context) GetContextType() string

func (*Context) GetCurrent

func (x *Context) GetCurrent() bool

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

func (x *Context) ProtoReflect() protoreflect.Message

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

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) SetCurrent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL