stateful

package
v0.0.0-...-86dda10 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStatefulServer

func RegisterStatefulServer(s *grpc.Server, srv StatefulServer)

Types

type GetDataRequest

type GetDataRequest struct {
	Device               string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetDataRequest) Descriptor

func (*GetDataRequest) Descriptor() ([]byte, []int)

func (*GetDataRequest) GetDevice

func (m *GetDataRequest) GetDevice() string

func (*GetDataRequest) ProtoMessage

func (*GetDataRequest) ProtoMessage()

func (*GetDataRequest) Reset

func (m *GetDataRequest) Reset()

func (*GetDataRequest) String

func (m *GetDataRequest) String() string

func (*GetDataRequest) XXX_DiscardUnknown

func (m *GetDataRequest) XXX_DiscardUnknown()

func (*GetDataRequest) XXX_Marshal

func (m *GetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDataRequest) XXX_Merge

func (m *GetDataRequest) XXX_Merge(src proto.Message)

func (*GetDataRequest) XXX_Size

func (m *GetDataRequest) XXX_Size() int

func (*GetDataRequest) XXX_Unmarshal

func (m *GetDataRequest) XXX_Unmarshal(b []byte) error

type GetDataResponse

type GetDataResponse struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetDataResponse) Descriptor

func (*GetDataResponse) Descriptor() ([]byte, []int)

func (*GetDataResponse) GetData

func (m *GetDataResponse) GetData() []byte

func (*GetDataResponse) ProtoMessage

func (*GetDataResponse) ProtoMessage()

func (*GetDataResponse) Reset

func (m *GetDataResponse) Reset()

func (*GetDataResponse) String

func (m *GetDataResponse) String() string

func (*GetDataResponse) XXX_DiscardUnknown

func (m *GetDataResponse) XXX_DiscardUnknown()

func (*GetDataResponse) XXX_Marshal

func (m *GetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDataResponse) XXX_Merge

func (m *GetDataResponse) XXX_Merge(src proto.Message)

func (*GetDataResponse) XXX_Size

func (m *GetDataResponse) XXX_Size() int

func (*GetDataResponse) XXX_Unmarshal

func (m *GetDataResponse) XXX_Unmarshal(b []byte) error

type SetDataRequest

type SetDataRequest struct {
	Device               string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetDataRequest) Descriptor

func (*SetDataRequest) Descriptor() ([]byte, []int)

func (*SetDataRequest) GetData

func (m *SetDataRequest) GetData() []byte

func (*SetDataRequest) GetDevice

func (m *SetDataRequest) GetDevice() string

func (*SetDataRequest) ProtoMessage

func (*SetDataRequest) ProtoMessage()

func (*SetDataRequest) Reset

func (m *SetDataRequest) Reset()

func (*SetDataRequest) String

func (m *SetDataRequest) String() string

func (*SetDataRequest) XXX_DiscardUnknown

func (m *SetDataRequest) XXX_DiscardUnknown()

func (*SetDataRequest) XXX_Marshal

func (m *SetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDataRequest) XXX_Merge

func (m *SetDataRequest) XXX_Merge(src proto.Message)

func (*SetDataRequest) XXX_Size

func (m *SetDataRequest) XXX_Size() int

func (*SetDataRequest) XXX_Unmarshal

func (m *SetDataRequest) XXX_Unmarshal(b []byte) error

type StatefulClient

type StatefulClient interface {
	SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error)
}

StatefulClient is the client API for Stateful service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStatefulClient

func NewStatefulClient(cc *grpc.ClientConn) StatefulClient

type StatefulServer

type StatefulServer interface {
	SetData(context.Context, *SetDataRequest) (*empty.Empty, error)
	GetData(context.Context, *GetDataRequest) (*GetDataResponse, error)
}

StatefulServer is the server API for Stateful service.

type UnimplementedStatefulServer

type UnimplementedStatefulServer struct {
}

UnimplementedStatefulServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatefulServer) GetData

func (*UnimplementedStatefulServer) SetData

Jump to

Keyboard shortcuts

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