Documentation ¶
Index ¶
- Variables
- func RegisterGreeterRouter(e *echo.Echo)
- type CreateUserReply
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetUsername() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type Foo
- type HelloReply
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelloRequest) GetAuthed() bool
- func (x *HelloRequest) GetCorpus() HelloRequest_Corpus
- func (x *HelloRequest) GetName() int32
- func (x *HelloRequest) GetNice() string
- func (x *HelloRequest) GetUid() int64
- func (*HelloRequest) ProtoMessage()
- func (x *HelloRequest) ProtoReflect() protoreflect.Message
- func (x *HelloRequest) Reset()
- func (x *HelloRequest) String() string
- type HelloRequest_Corpus
- func (HelloRequest_Corpus) Descriptor() protoreflect.EnumDescriptor
- func (x HelloRequest_Corpus) Enum() *HelloRequest_Corpus
- func (HelloRequest_Corpus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HelloRequest_Corpus) Number() protoreflect.EnumNumber
- func (x HelloRequest_Corpus) String() string
- func (HelloRequest_Corpus) Type() protoreflect.EnumType
- type UpdateUserReply
- func (*UpdateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReply) GetMessage() string
- func (x *UpdateUserReply) GetUsername() string
- func (*UpdateUserReply) ProtoMessage()
- func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReply) Reset()
- func (x *UpdateUserReply) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetPhone() string
- func (x *UpdateUserRequest) GetUsername() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UserAddr
- type UserReply
- type UserReplys
- func (*UserReplys) Descriptor() ([]byte, []int)deprecated
- func (x *UserReplys) GetPageSize() int32
- func (x *UserReplys) GetPageToken() string
- func (x *UserReplys) GetUserList() []*UserReply
- func (*UserReplys) ProtoMessage()
- func (x *UserReplys) ProtoReflect() protoreflect.Message
- func (x *UserReplys) Reset()
- func (x *UserReplys) String() string
- type UserRequest
- func (*UserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRequest) GetEmail() string
- func (x *UserRequest) GetFoo() Foo
- func (x *UserRequest) GetPhone() string
- func (x *UserRequest) GetUserAddr() *UserAddr
- func (*UserRequest) ProtoMessage()
- func (x *UserRequest) ProtoReflect() protoreflect.Message
- func (x *UserRequest) Reset()
- func (x *UserRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Foo_name = map[int32]string{ 0: "DEFAULT_BAR", 1: "BAR_BELLS", 2: "BAR_B_CUE", } Foo_value = map[string]int32{ "DEFAULT_BAR": 0, "BAR_BELLS": 1, "BAR_B_CUE": 2, } )
Enum value maps for Foo.
var ( HelloRequest_Corpus_name = map[int32]string{ 0: "UNIVERSAL", 1: "WEB", 2: "IMAGES", 3: "LOCAL", 4: "NEWS", 5: "PRODUCTS", 6: "VIDEO", } HelloRequest_Corpus_value = map[string]int32{ "UNIVERSAL": 0, "WEB": 1, "IMAGES": 2, "LOCAL": 3, "NEWS": 4, "PRODUCTS": 5, "VIDEO": 6, } )
Enum value maps for HelloRequest_Corpus.
var File_example_v1_greeter_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreeterRouter ¶
func RegisterGreeterRouter(e *echo.Echo)
Types ¶
type CreateUserReply ¶ added in v0.0.4
type CreateUserReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
Login reply must include token field.
func GreeterCreateUserBusinessHandler ¶
func GreeterCreateUserBusinessHandler(req *CreateUserRequest, c echo.Context) (CreateUserReply, error)
func (*CreateUserReply) Descriptor
deprecated
added in
v0.0.4
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetToken ¶ added in v0.0.4
func (x *CreateUserReply) GetToken() string
func (*CreateUserReply) ProtoMessage ¶ added in v0.0.4
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶ added in v0.0.4
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶ added in v0.0.4
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶ added in v0.0.4
func (x *CreateUserReply) String() string
type CreateUserRequest ¶ added in v0.0.4
type CreateUserRequest 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"` // contains filtered or unexported fields }
Login request must include username and password field.
func (*CreateUserRequest) Descriptor
deprecated
added in
v0.0.4
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetPassword ¶ added in v0.0.4
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUsername ¶ added in v0.0.4
func (x *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) ProtoMessage ¶ added in v0.0.4
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶ added in v0.0.4
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶ added in v0.0.4
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶ added in v0.0.4
func (x *CreateUserRequest) String() string
type Foo ¶ added in v0.1.0
type Foo int32
func (Foo) Descriptor ¶ added in v0.1.0
func (Foo) Descriptor() protoreflect.EnumDescriptor
func (Foo) EnumDescriptor
deprecated
added in
v0.1.0
func (Foo) Number ¶ added in v0.1.0
func (x Foo) Number() protoreflect.EnumNumber
func (Foo) Type ¶ added in v0.1.0
func (Foo) Type() protoreflect.EnumType
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func GreeterSayHelloBusinessHandler ¶
func GreeterSayHelloBusinessHandler(req *HelloRequest, c echo.Context) (HelloReply, error)
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { Name int32 `protobuf:"varint,1,opt,name=name,proto3" json:"name,omitempty"` Nice string `protobuf:"bytes,2,opt,name=nice,proto3" json:"nice,omitempty"` Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"` Authed bool `protobuf:"varint,4,opt,name=authed,proto3" json:"authed,omitempty"` Corpus HelloRequest_Corpus `protobuf:"varint,5,opt,name=corpus,proto3,enum=v1.HelloRequest_Corpus" json:"corpus,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetAuthed ¶ added in v0.0.6
func (x *HelloRequest) GetAuthed() bool
func (*HelloRequest) GetCorpus ¶ added in v0.1.0
func (x *HelloRequest) GetCorpus() HelloRequest_Corpus
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() int32
func (*HelloRequest) GetNice ¶
func (x *HelloRequest) GetNice() string
func (*HelloRequest) GetUid ¶ added in v0.0.6
func (x *HelloRequest) GetUid() int64
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloRequest_Corpus ¶ added in v0.1.0
type HelloRequest_Corpus int32
const ( HelloRequest_UNIVERSAL HelloRequest_Corpus = 0 HelloRequest_WEB HelloRequest_Corpus = 1 HelloRequest_IMAGES HelloRequest_Corpus = 2 HelloRequest_LOCAL HelloRequest_Corpus = 3 HelloRequest_NEWS HelloRequest_Corpus = 4 HelloRequest_PRODUCTS HelloRequest_Corpus = 5 HelloRequest_VIDEO HelloRequest_Corpus = 6 )
func (HelloRequest_Corpus) Descriptor ¶ added in v0.1.0
func (HelloRequest_Corpus) Descriptor() protoreflect.EnumDescriptor
func (HelloRequest_Corpus) Enum ¶ added in v0.1.0
func (x HelloRequest_Corpus) Enum() *HelloRequest_Corpus
func (HelloRequest_Corpus) EnumDescriptor
deprecated
added in
v0.1.0
func (HelloRequest_Corpus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HelloRequest_Corpus.Descriptor instead.
func (HelloRequest_Corpus) Number ¶ added in v0.1.0
func (x HelloRequest_Corpus) Number() protoreflect.EnumNumber
func (HelloRequest_Corpus) String ¶ added in v0.1.0
func (x HelloRequest_Corpus) String() string
func (HelloRequest_Corpus) Type ¶ added in v0.1.0
func (HelloRequest_Corpus) Type() protoreflect.EnumType
type UpdateUserReply ¶ added in v0.0.4
type UpdateUserReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func GreeterUpdateUserBusinessHandler ¶
func GreeterUpdateUserBusinessHandler(req *UpdateUserRequest, c echo.Context) (UpdateUserReply, error)
func (*UpdateUserReply) Descriptor
deprecated
added in
v0.0.4
func (*UpdateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.
func (*UpdateUserReply) GetMessage ¶ added in v0.0.4
func (x *UpdateUserReply) GetMessage() string
func (*UpdateUserReply) GetUsername ¶ added in v0.0.4
func (x *UpdateUserReply) GetUsername() string
func (*UpdateUserReply) ProtoMessage ¶ added in v0.0.4
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) ProtoReflect ¶ added in v0.0.4
func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
func (*UpdateUserReply) Reset ¶ added in v0.0.4
func (x *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶ added in v0.0.4
func (x *UpdateUserReply) String() string
type UpdateUserRequest ¶ added in v0.0.4
type UpdateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*UpdateUserRequest) Descriptor
deprecated
added in
v0.0.4
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetEmail ¶ added in v0.0.4
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetPhone ¶ added in v0.0.4
func (x *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetUsername ¶ added in v0.0.4
func (x *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) ProtoMessage ¶ added in v0.0.4
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶ added in v0.0.4
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶ added in v0.0.4
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶ added in v0.0.4
func (x *UpdateUserRequest) String() string
type UserAddr ¶ added in v0.1.0
type UserAddr struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*UserAddr) Descriptor
deprecated
added in
v0.1.0
func (*UserAddr) ProtoMessage ¶ added in v0.1.0
func (*UserAddr) ProtoMessage()
func (*UserAddr) ProtoReflect ¶ added in v0.1.0
func (x *UserAddr) ProtoReflect() protoreflect.Message
type UserReply ¶
type UserReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func GreeterDeleteUserBusinessHandler ¶
func GreeterDeleteUserBusinessHandler(req *UserRequest, c echo.Context) (UserReply, error)
func (*UserReply) Descriptor
deprecated
func (*UserReply) GetMessage ¶
func (*UserReply) ProtoMessage ¶
func (*UserReply) ProtoMessage()
func (*UserReply) ProtoReflect ¶
func (x *UserReply) ProtoReflect() protoreflect.Message
type UserReplys ¶
type UserReplys struct { UserList []*UserReply `protobuf:"bytes,1,rep,name=userList,proto3" json:"userList,omitempty"` // The maximum number of books to return. The service may return fewer than // this value. // If unspecified, at most 50 books will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous `ListBooks` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListBooks` must match // the call that provided the page token. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func GreeterListUsersBusinessHandler ¶
func GreeterListUsersBusinessHandler(req *UserRequest, c echo.Context) (UserReplys, error)
func (*UserReplys) Descriptor
deprecated
func (*UserReplys) Descriptor() ([]byte, []int)
Deprecated: Use UserReplys.ProtoReflect.Descriptor instead.
func (*UserReplys) GetPageSize ¶
func (x *UserReplys) GetPageSize() int32
func (*UserReplys) GetPageToken ¶
func (x *UserReplys) GetPageToken() string
func (*UserReplys) GetUserList ¶
func (x *UserReplys) GetUserList() []*UserReply
func (*UserReplys) ProtoMessage ¶
func (*UserReplys) ProtoMessage()
func (*UserReplys) ProtoReflect ¶
func (x *UserReplys) ProtoReflect() protoreflect.Message
func (*UserReplys) Reset ¶
func (x *UserReplys) Reset()
func (*UserReplys) String ¶
func (x *UserReplys) String() string
type UserRequest ¶
type UserRequest struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Foo Foo `protobuf:"varint,3,opt,name=foo,proto3,enum=v1.Foo" json:"foo,omitempty"` UserAddr *UserAddr `protobuf:"bytes,4,opt,name=user_addr,json=userAddr,proto3" json:"user_addr,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetEmail ¶
func (x *UserRequest) GetEmail() string
func (*UserRequest) GetFoo ¶ added in v0.1.0
func (x *UserRequest) GetFoo() Foo
func (*UserRequest) GetPhone ¶
func (x *UserRequest) GetPhone() string
func (*UserRequest) GetUserAddr ¶ added in v0.1.0
func (x *UserRequest) GetUserAddr() *UserAddr
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string