proto

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error

Types

type ReqSignup

type ReqSignup struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqSignup) Descriptor

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

func (*ReqSignup) GetPassword

func (m *ReqSignup) GetPassword() string

func (*ReqSignup) GetUsername

func (m *ReqSignup) GetUsername() string

func (*ReqSignup) ProtoMessage

func (*ReqSignup) ProtoMessage()

func (*ReqSignup) Reset

func (m *ReqSignup) Reset()

func (*ReqSignup) String

func (m *ReqSignup) String() string

func (*ReqSignup) XXX_DiscardUnknown

func (m *ReqSignup) XXX_DiscardUnknown()

func (*ReqSignup) XXX_Marshal

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

func (*ReqSignup) XXX_Merge

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

func (*ReqSignup) XXX_Size

func (m *ReqSignup) XXX_Size() int

func (*ReqSignup) XXX_Unmarshal

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

type RespSignup

type RespSignup struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespSignup) Descriptor

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

func (*RespSignup) GetCode

func (m *RespSignup) GetCode() int32

func (*RespSignup) GetMessage

func (m *RespSignup) GetMessage() string

func (*RespSignup) ProtoMessage

func (*RespSignup) ProtoMessage()

func (*RespSignup) Reset

func (m *RespSignup) Reset()

func (*RespSignup) String

func (m *RespSignup) String() string

func (*RespSignup) XXX_DiscardUnknown

func (m *RespSignup) XXX_DiscardUnknown()

func (*RespSignup) XXX_Marshal

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

func (*RespSignup) XXX_Merge

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

func (*RespSignup) XXX_Size

func (m *RespSignup) XXX_Size() int

func (*RespSignup) XXX_Unmarshal

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

type UserService

type UserService interface {
	Signup(ctx context.Context, in *ReqSignup, opts ...client.CallOption) (*RespSignup, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

type UserServiceHandler

type UserServiceHandler interface {
	Signup(context.Context, *ReqSignup, *RespSignup) error
}

Jump to

Keyboard shortcuts

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