mlb

package
v0.8.28 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMlb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMlb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMlb = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterMlbServer

func RegisterMlbServer(s *grpc.Server, srv MlbServer)

Types

type GetMlbParamRequest

type GetMlbParamRequest struct {
}

func (*GetMlbParamRequest) Descriptor

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

func (*GetMlbParamRequest) Marshal

func (m *GetMlbParamRequest) Marshal() (dAtA []byte, err error)

func (*GetMlbParamRequest) MarshalTo

func (m *GetMlbParamRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetMlbParamRequest) MarshalToSizedBuffer

func (m *GetMlbParamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetMlbParamRequest) ProtoMessage

func (*GetMlbParamRequest) ProtoMessage()

func (*GetMlbParamRequest) Reset

func (m *GetMlbParamRequest) Reset()

func (*GetMlbParamRequest) Size

func (m *GetMlbParamRequest) Size() (n int)

func (*GetMlbParamRequest) String

func (m *GetMlbParamRequest) String() string

func (*GetMlbParamRequest) Unmarshal

func (m *GetMlbParamRequest) Unmarshal(dAtA []byte) error

func (*GetMlbParamRequest) XXX_DiscardUnknown

func (m *GetMlbParamRequest) XXX_DiscardUnknown()

func (*GetMlbParamRequest) XXX_Marshal

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

func (*GetMlbParamRequest) XXX_Merge

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

func (*GetMlbParamRequest) XXX_Size

func (m *GetMlbParamRequest) XXX_Size() int

func (*GetMlbParamRequest) XXX_Unmarshal

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

type GetMlbParamResponse

type GetMlbParamResponse struct {
	Interval          int32 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
	OverloadThreshold int32 `protobuf:"varint,2,opt,name=overload_threshold,json=overloadThreshold,proto3" json:"overload_threshold,omitempty"`
	TargetThreshold   int32 `protobuf:"varint,3,opt,name=target_threshold,json=targetThreshold,proto3" json:"target_threshold,omitempty"`
	DeltaOcn          int32 `protobuf:"varint,4,opt,name=delta_ocn,json=deltaOcn,proto3" json:"delta_ocn,omitempty"`
}

func (*GetMlbParamResponse) Descriptor

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

func (*GetMlbParamResponse) GetDeltaOcn

func (m *GetMlbParamResponse) GetDeltaOcn() int32

func (*GetMlbParamResponse) GetInterval

func (m *GetMlbParamResponse) GetInterval() int32

func (*GetMlbParamResponse) GetOverloadThreshold

func (m *GetMlbParamResponse) GetOverloadThreshold() int32

func (*GetMlbParamResponse) GetTargetThreshold

func (m *GetMlbParamResponse) GetTargetThreshold() int32

func (*GetMlbParamResponse) Marshal

func (m *GetMlbParamResponse) Marshal() (dAtA []byte, err error)

func (*GetMlbParamResponse) MarshalTo

func (m *GetMlbParamResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetMlbParamResponse) MarshalToSizedBuffer

func (m *GetMlbParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetMlbParamResponse) ProtoMessage

func (*GetMlbParamResponse) ProtoMessage()

func (*GetMlbParamResponse) Reset

func (m *GetMlbParamResponse) Reset()

func (*GetMlbParamResponse) Size

func (m *GetMlbParamResponse) Size() (n int)

func (*GetMlbParamResponse) String

func (m *GetMlbParamResponse) String() string

func (*GetMlbParamResponse) Unmarshal

func (m *GetMlbParamResponse) Unmarshal(dAtA []byte) error

func (*GetMlbParamResponse) XXX_DiscardUnknown

func (m *GetMlbParamResponse) XXX_DiscardUnknown()

func (*GetMlbParamResponse) XXX_Marshal

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

func (*GetMlbParamResponse) XXX_Merge

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

func (*GetMlbParamResponse) XXX_Size

func (m *GetMlbParamResponse) XXX_Size() int

func (*GetMlbParamResponse) XXX_Unmarshal

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

type GetOcnRequest

type GetOcnRequest struct {
}

func (*GetOcnRequest) Descriptor

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

func (*GetOcnRequest) Marshal

func (m *GetOcnRequest) Marshal() (dAtA []byte, err error)

func (*GetOcnRequest) MarshalTo

func (m *GetOcnRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetOcnRequest) MarshalToSizedBuffer

func (m *GetOcnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetOcnRequest) ProtoMessage

func (*GetOcnRequest) ProtoMessage()

func (*GetOcnRequest) Reset

func (m *GetOcnRequest) Reset()

func (*GetOcnRequest) Size

func (m *GetOcnRequest) Size() (n int)

func (*GetOcnRequest) String

func (m *GetOcnRequest) String() string

func (*GetOcnRequest) Unmarshal

func (m *GetOcnRequest) Unmarshal(dAtA []byte) error

func (*GetOcnRequest) XXX_DiscardUnknown

func (m *GetOcnRequest) XXX_DiscardUnknown()

func (*GetOcnRequest) XXX_Marshal

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

func (*GetOcnRequest) XXX_Merge

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

func (*GetOcnRequest) XXX_Size

func (m *GetOcnRequest) XXX_Size() int

func (*GetOcnRequest) XXX_Unmarshal

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

type GetOcnResponse

type GetOcnResponse struct {
	OcnMap map[string]*OcnRecord `` /* 167-byte string literal not displayed */
}

func (*GetOcnResponse) Descriptor

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

func (*GetOcnResponse) GetOcnMap

func (m *GetOcnResponse) GetOcnMap() map[string]*OcnRecord

func (*GetOcnResponse) Marshal

func (m *GetOcnResponse) Marshal() (dAtA []byte, err error)

func (*GetOcnResponse) MarshalTo

func (m *GetOcnResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetOcnResponse) MarshalToSizedBuffer

func (m *GetOcnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetOcnResponse) ProtoMessage

func (*GetOcnResponse) ProtoMessage()

func (*GetOcnResponse) Reset

func (m *GetOcnResponse) Reset()

func (*GetOcnResponse) Size

func (m *GetOcnResponse) Size() (n int)

func (*GetOcnResponse) String

func (m *GetOcnResponse) String() string

func (*GetOcnResponse) Unmarshal

func (m *GetOcnResponse) Unmarshal(dAtA []byte) error

func (*GetOcnResponse) XXX_DiscardUnknown

func (m *GetOcnResponse) XXX_DiscardUnknown()

func (*GetOcnResponse) XXX_Marshal

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

func (*GetOcnResponse) XXX_Merge

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

func (*GetOcnResponse) XXX_Size

func (m *GetOcnResponse) XXX_Size() int

func (*GetOcnResponse) XXX_Unmarshal

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

type MlbClient

type MlbClient interface {
	// GetMlbParams gets MLB parameters
	GetMlbParams(ctx context.Context, in *GetMlbParamRequest, opts ...grpc.CallOption) (*GetMlbParamResponse, error)
	// SetMlbParams sets MLB parameters
	SetMlbParams(ctx context.Context, in *SetMlbParamRequest, opts ...grpc.CallOption) (*SetMlbParamResponse, error)
	// GetOcn gets Ocn map
	GetOcn(ctx context.Context, in *GetOcnRequest, opts ...grpc.CallOption) (*GetOcnResponse, error)
}

MlbClient is the client API for Mlb service.

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

func NewMlbClient

func NewMlbClient(cc *grpc.ClientConn) MlbClient

type MlbServer

type MlbServer interface {
	// GetMlbParams gets MLB parameters
	GetMlbParams(context.Context, *GetMlbParamRequest) (*GetMlbParamResponse, error)
	// SetMlbParams sets MLB parameters
	SetMlbParams(context.Context, *SetMlbParamRequest) (*SetMlbParamResponse, error)
	// GetOcn gets Ocn map
	GetOcn(context.Context, *GetOcnRequest) (*GetOcnResponse, error)
}

MlbServer is the server API for Mlb service.

type OcnIDs

type OcnIDs struct {
}

func (*OcnIDs) Descriptor

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

func (*OcnIDs) Marshal

func (m *OcnIDs) Marshal() (dAtA []byte, err error)

func (*OcnIDs) MarshalTo

func (m *OcnIDs) MarshalTo(dAtA []byte) (int, error)

func (*OcnIDs) MarshalToSizedBuffer

func (m *OcnIDs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OcnIDs) ProtoMessage

func (*OcnIDs) ProtoMessage()

func (*OcnIDs) Reset

func (m *OcnIDs) Reset()

func (*OcnIDs) Size

func (m *OcnIDs) Size() (n int)

func (*OcnIDs) String

func (m *OcnIDs) String() string

func (*OcnIDs) Unmarshal

func (m *OcnIDs) Unmarshal(dAtA []byte) error

func (*OcnIDs) XXX_DiscardUnknown

func (m *OcnIDs) XXX_DiscardUnknown()

func (*OcnIDs) XXX_Marshal

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

func (*OcnIDs) XXX_Merge

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

func (*OcnIDs) XXX_Size

func (m *OcnIDs) XXX_Size() int

func (*OcnIDs) XXX_Unmarshal

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

type OcnRecord

type OcnRecord struct {
	OcnRecord map[string]int32 `` /* 177-byte string literal not displayed */
}

func (*OcnRecord) Descriptor

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

func (*OcnRecord) GetOcnRecord

func (m *OcnRecord) GetOcnRecord() map[string]int32

func (*OcnRecord) Marshal

func (m *OcnRecord) Marshal() (dAtA []byte, err error)

func (*OcnRecord) MarshalTo

func (m *OcnRecord) MarshalTo(dAtA []byte) (int, error)

func (*OcnRecord) MarshalToSizedBuffer

func (m *OcnRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OcnRecord) ProtoMessage

func (*OcnRecord) ProtoMessage()

func (*OcnRecord) Reset

func (m *OcnRecord) Reset()

func (*OcnRecord) Size

func (m *OcnRecord) Size() (n int)

func (*OcnRecord) String

func (m *OcnRecord) String() string

func (*OcnRecord) Unmarshal

func (m *OcnRecord) Unmarshal(dAtA []byte) error

func (*OcnRecord) XXX_DiscardUnknown

func (m *OcnRecord) XXX_DiscardUnknown()

func (*OcnRecord) XXX_Marshal

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

func (*OcnRecord) XXX_Merge

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

func (*OcnRecord) XXX_Size

func (m *OcnRecord) XXX_Size() int

func (*OcnRecord) XXX_Unmarshal

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

type SetMlbParamRequest

type SetMlbParamRequest struct {
	Interval          int32 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
	OverloadThreshold int32 `protobuf:"varint,2,opt,name=overload_threshold,json=overloadThreshold,proto3" json:"overload_threshold,omitempty"`
	TargetThreshold   int32 `protobuf:"varint,3,opt,name=target_threshold,json=targetThreshold,proto3" json:"target_threshold,omitempty"`
	DeltaOcn          int32 `protobuf:"varint,4,opt,name=delta_ocn,json=deltaOcn,proto3" json:"delta_ocn,omitempty"`
}

func (*SetMlbParamRequest) Descriptor

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

func (*SetMlbParamRequest) GetDeltaOcn

func (m *SetMlbParamRequest) GetDeltaOcn() int32

func (*SetMlbParamRequest) GetInterval

func (m *SetMlbParamRequest) GetInterval() int32

func (*SetMlbParamRequest) GetOverloadThreshold

func (m *SetMlbParamRequest) GetOverloadThreshold() int32

func (*SetMlbParamRequest) GetTargetThreshold

func (m *SetMlbParamRequest) GetTargetThreshold() int32

func (*SetMlbParamRequest) Marshal

func (m *SetMlbParamRequest) Marshal() (dAtA []byte, err error)

func (*SetMlbParamRequest) MarshalTo

func (m *SetMlbParamRequest) MarshalTo(dAtA []byte) (int, error)

func (*SetMlbParamRequest) MarshalToSizedBuffer

func (m *SetMlbParamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SetMlbParamRequest) ProtoMessage

func (*SetMlbParamRequest) ProtoMessage()

func (*SetMlbParamRequest) Reset

func (m *SetMlbParamRequest) Reset()

func (*SetMlbParamRequest) Size

func (m *SetMlbParamRequest) Size() (n int)

func (*SetMlbParamRequest) String

func (m *SetMlbParamRequest) String() string

func (*SetMlbParamRequest) Unmarshal

func (m *SetMlbParamRequest) Unmarshal(dAtA []byte) error

func (*SetMlbParamRequest) XXX_DiscardUnknown

func (m *SetMlbParamRequest) XXX_DiscardUnknown()

func (*SetMlbParamRequest) XXX_Marshal

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

func (*SetMlbParamRequest) XXX_Merge

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

func (*SetMlbParamRequest) XXX_Size

func (m *SetMlbParamRequest) XXX_Size() int

func (*SetMlbParamRequest) XXX_Unmarshal

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

type SetMlbParamResponse

type SetMlbParamResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

func (*SetMlbParamResponse) Descriptor

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

func (*SetMlbParamResponse) GetSuccess

func (m *SetMlbParamResponse) GetSuccess() bool

func (*SetMlbParamResponse) Marshal

func (m *SetMlbParamResponse) Marshal() (dAtA []byte, err error)

func (*SetMlbParamResponse) MarshalTo

func (m *SetMlbParamResponse) MarshalTo(dAtA []byte) (int, error)

func (*SetMlbParamResponse) MarshalToSizedBuffer

func (m *SetMlbParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SetMlbParamResponse) ProtoMessage

func (*SetMlbParamResponse) ProtoMessage()

func (*SetMlbParamResponse) Reset

func (m *SetMlbParamResponse) Reset()

func (*SetMlbParamResponse) Size

func (m *SetMlbParamResponse) Size() (n int)

func (*SetMlbParamResponse) String

func (m *SetMlbParamResponse) String() string

func (*SetMlbParamResponse) Unmarshal

func (m *SetMlbParamResponse) Unmarshal(dAtA []byte) error

func (*SetMlbParamResponse) XXX_DiscardUnknown

func (m *SetMlbParamResponse) XXX_DiscardUnknown()

func (*SetMlbParamResponse) XXX_Marshal

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

func (*SetMlbParamResponse) XXX_Merge

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

func (*SetMlbParamResponse) XXX_Size

func (m *SetMlbParamResponse) XXX_Size() int

func (*SetMlbParamResponse) XXX_Unmarshal

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

type UnimplementedMlbServer

type UnimplementedMlbServer struct {
}

UnimplementedMlbServer can be embedded to have forward compatible implementations.

func (*UnimplementedMlbServer) GetMlbParams

func (*UnimplementedMlbServer) GetOcn

func (*UnimplementedMlbServer) SetMlbParams

Jump to

Keyboard shortcuts

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