countplugin1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCounterServer

func RegisterCounterServer(s *grpc.Server, srv CounterServer)

Types

type Count

type Count struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Count) Descriptor

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

func (*Count) ProtoMessage

func (*Count) ProtoMessage()

func (*Count) Reset

func (m *Count) Reset()

func (*Count) String

func (m *Count) String() string

func (*Count) XXX_DiscardUnknown

func (m *Count) XXX_DiscardUnknown()

func (*Count) XXX_Marshal

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

func (*Count) XXX_Merge

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

func (*Count) XXX_Size

func (m *Count) XXX_Size() int

func (*Count) XXX_Unmarshal

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

type Count_Request

type Count_Request struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Count_Request) Descriptor

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

func (*Count_Request) ProtoMessage

func (*Count_Request) ProtoMessage()

func (*Count_Request) Reset

func (m *Count_Request) Reset()

func (*Count_Request) String

func (m *Count_Request) String() string

func (*Count_Request) XXX_DiscardUnknown

func (m *Count_Request) XXX_DiscardUnknown()

func (*Count_Request) XXX_Marshal

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

func (*Count_Request) XXX_Merge

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

func (*Count_Request) XXX_Size

func (m *Count_Request) XXX_Size() int

func (*Count_Request) XXX_Unmarshal

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

type Count_Response

type Count_Response struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Count_Response) Descriptor

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

func (*Count_Response) ProtoMessage

func (*Count_Response) ProtoMessage()

func (*Count_Response) Reset

func (m *Count_Response) Reset()

func (*Count_Response) String

func (m *Count_Response) String() string

func (*Count_Response) XXX_DiscardUnknown

func (m *Count_Response) XXX_DiscardUnknown()

func (*Count_Response) XXX_Marshal

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

func (*Count_Response) XXX_Merge

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

func (*Count_Response) XXX_Size

func (m *Count_Response) XXX_Size() int

func (*Count_Response) XXX_Unmarshal

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

type CounterClient

type CounterClient interface {
	Count(ctx context.Context, in *Count_Request, opts ...grpc.CallOption) (*Count_Response, error)
	GetCount(ctx context.Context, in *GetCount_Request, opts ...grpc.CallOption) (*GetCount_Response, error)
}

CounterClient is the client API for Counter service.

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

func NewCounterClient

func NewCounterClient(cc *grpc.ClientConn) CounterClient

type CounterServer

type CounterServer interface {
	Count(context.Context, *Count_Request) (*Count_Response, error)
	GetCount(context.Context, *GetCount_Request) (*GetCount_Response, error)
}

CounterServer is the server API for Counter service.

type GetCount

type GetCount struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCount) Descriptor

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

func (*GetCount) ProtoMessage

func (*GetCount) ProtoMessage()

func (*GetCount) Reset

func (m *GetCount) Reset()

func (*GetCount) String

func (m *GetCount) String() string

func (*GetCount) XXX_DiscardUnknown

func (m *GetCount) XXX_DiscardUnknown()

func (*GetCount) XXX_Marshal

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

func (*GetCount) XXX_Merge

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

func (*GetCount) XXX_Size

func (m *GetCount) XXX_Size() int

func (*GetCount) XXX_Unmarshal

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

type GetCount_Request

type GetCount_Request struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCount_Request) Descriptor

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

func (*GetCount_Request) ProtoMessage

func (*GetCount_Request) ProtoMessage()

func (*GetCount_Request) Reset

func (m *GetCount_Request) Reset()

func (*GetCount_Request) String

func (m *GetCount_Request) String() string

func (*GetCount_Request) XXX_DiscardUnknown

func (m *GetCount_Request) XXX_DiscardUnknown()

func (*GetCount_Request) XXX_Marshal

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

func (*GetCount_Request) XXX_Merge

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

func (*GetCount_Request) XXX_Size

func (m *GetCount_Request) XXX_Size() int

func (*GetCount_Request) XXX_Unmarshal

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

type GetCount_Response

type GetCount_Response struct {
	Count                int64    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCount_Response) Descriptor

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

func (*GetCount_Response) GetCount

func (m *GetCount_Response) GetCount() int64

func (*GetCount_Response) ProtoMessage

func (*GetCount_Response) ProtoMessage()

func (*GetCount_Response) Reset

func (m *GetCount_Response) Reset()

func (*GetCount_Response) String

func (m *GetCount_Response) String() string

func (*GetCount_Response) XXX_DiscardUnknown

func (m *GetCount_Response) XXX_DiscardUnknown()

func (*GetCount_Response) XXX_Marshal

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

func (*GetCount_Response) XXX_Merge

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

func (*GetCount_Response) XXX_Size

func (m *GetCount_Response) XXX_Size() int

func (*GetCount_Response) XXX_Unmarshal

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

type UnimplementedCounterServer

type UnimplementedCounterServer struct {
}

UnimplementedCounterServer can be embedded to have forward compatible implementations.

func (*UnimplementedCounterServer) Count

func (*UnimplementedCounterServer) GetCount

Jump to

Keyboard shortcuts

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