foo

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFooServer

func RegisterFooServer(s *grpc.Server, srv FooServer)

Types

type BarRequest

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

func (*BarRequest) Descriptor

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

func (*BarRequest) GetBaz

func (m *BarRequest) GetBaz() int64

func (*BarRequest) ProtoMessage

func (*BarRequest) ProtoMessage()

func (*BarRequest) Reset

func (m *BarRequest) Reset()

func (*BarRequest) String

func (m *BarRequest) String() string

func (*BarRequest) XXX_DiscardUnknown

func (m *BarRequest) XXX_DiscardUnknown()

func (*BarRequest) XXX_Marshal

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

func (*BarRequest) XXX_Merge

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

func (*BarRequest) XXX_Size

func (m *BarRequest) XXX_Size() int

func (*BarRequest) XXX_Unmarshal

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

type BarResponse

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

func (*BarResponse) Descriptor

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

func (*BarResponse) GetQux

func (m *BarResponse) GetQux() string

func (*BarResponse) ProtoMessage

func (*BarResponse) ProtoMessage()

func (*BarResponse) Reset

func (m *BarResponse) Reset()

func (*BarResponse) String

func (m *BarResponse) String() string

func (*BarResponse) XXX_DiscardUnknown

func (m *BarResponse) XXX_DiscardUnknown()

func (*BarResponse) XXX_Marshal

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

func (*BarResponse) XXX_Merge

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

func (*BarResponse) XXX_Size

func (m *BarResponse) XXX_Size() int

func (*BarResponse) XXX_Unmarshal

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

type FooClient

type FooClient interface {
	Bar(ctx context.Context, in *BarRequest, opts ...grpc.CallOption) (*BarResponse, error)
}

FooClient is the client API for Foo service.

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

func NewFooClient

func NewFooClient(cc *grpc.ClientConn) FooClient

type FooServer

type FooServer interface {
	Bar(context.Context, *BarRequest) (*BarResponse, error)
}

FooServer is the server API for Foo service.

Jump to

Keyboard shortcuts

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