Documentation ¶
Overview ¶
Package grpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package grpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package grpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterTweetServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTweetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TweetServiceClient) error
- func RegisterTweetServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTweetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TweetServiceServer) error
- func RegisterTweetServiceServer(s *grpc.Server, srv TweetServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CreateTweetRequest
- func (*CreateTweetRequest) Descriptor() ([]byte, []int)
- func (m *CreateTweetRequest) GetMessage() string
- func (*CreateTweetRequest) ProtoMessage()
- func (m *CreateTweetRequest) Reset()
- func (m *CreateTweetRequest) String() string
- func (m *CreateTweetRequest) Validate() error
- func (m *CreateTweetRequest) XXX_DiscardUnknown()
- func (m *CreateTweetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTweetRequest) XXX_Merge(src proto.Message)
- func (m *CreateTweetRequest) XXX_Size() int
- func (m *CreateTweetRequest) XXX_Unmarshal(b []byte) error
- type CreateTweetRequestValidationError
- func (e CreateTweetRequestValidationError) Cause() error
- func (e CreateTweetRequestValidationError) Error() string
- func (e CreateTweetRequestValidationError) ErrorName() string
- func (e CreateTweetRequestValidationError) Field() string
- func (e CreateTweetRequestValidationError) Key() bool
- func (e CreateTweetRequestValidationError) Reason() string
- type CreateTweetResponse
- func (*CreateTweetResponse) Descriptor() ([]byte, []int)
- func (m *CreateTweetResponse) GetId() uint64
- func (m *CreateTweetResponse) GetMessage() string
- func (*CreateTweetResponse) ProtoMessage()
- func (m *CreateTweetResponse) Reset()
- func (m *CreateTweetResponse) String() string
- func (m *CreateTweetResponse) Validate() error
- func (m *CreateTweetResponse) XXX_DiscardUnknown()
- func (m *CreateTweetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTweetResponse) XXX_Merge(src proto.Message)
- func (m *CreateTweetResponse) XXX_Size() int
- func (m *CreateTweetResponse) XXX_Unmarshal(b []byte) error
- type CreateTweetResponseValidationError
- func (e CreateTweetResponseValidationError) Cause() error
- func (e CreateTweetResponseValidationError) Error() string
- func (e CreateTweetResponseValidationError) ErrorName() string
- func (e CreateTweetResponseValidationError) Field() string
- func (e CreateTweetResponseValidationError) Key() bool
- func (e CreateTweetResponseValidationError) Reason() string
- type ListTweetRequest
- func (*ListTweetRequest) Descriptor() ([]byte, []int)
- func (*ListTweetRequest) ProtoMessage()
- func (m *ListTweetRequest) Reset()
- func (m *ListTweetRequest) String() string
- func (m *ListTweetRequest) Validate() error
- func (m *ListTweetRequest) XXX_DiscardUnknown()
- func (m *ListTweetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTweetRequest) XXX_Merge(src proto.Message)
- func (m *ListTweetRequest) XXX_Size() int
- func (m *ListTweetRequest) XXX_Unmarshal(b []byte) error
- type ListTweetRequestValidationError
- func (e ListTweetRequestValidationError) Cause() error
- func (e ListTweetRequestValidationError) Error() string
- func (e ListTweetRequestValidationError) ErrorName() string
- func (e ListTweetRequestValidationError) Field() string
- func (e ListTweetRequestValidationError) Key() bool
- func (e ListTweetRequestValidationError) Reason() string
- type ListTweetResponse
- func (*ListTweetResponse) Descriptor() ([]byte, []int)
- func (m *ListTweetResponse) GetTweets() []*ListTweetResponse_Tweet
- func (*ListTweetResponse) ProtoMessage()
- func (m *ListTweetResponse) Reset()
- func (m *ListTweetResponse) String() string
- func (m *ListTweetResponse) Validate() error
- func (m *ListTweetResponse) XXX_DiscardUnknown()
- func (m *ListTweetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTweetResponse) XXX_Merge(src proto.Message)
- func (m *ListTweetResponse) XXX_Size() int
- func (m *ListTweetResponse) XXX_Unmarshal(b []byte) error
- type ListTweetResponseValidationError
- func (e ListTweetResponseValidationError) Cause() error
- func (e ListTweetResponseValidationError) Error() string
- func (e ListTweetResponseValidationError) ErrorName() string
- func (e ListTweetResponseValidationError) Field() string
- func (e ListTweetResponseValidationError) Key() bool
- func (e ListTweetResponseValidationError) Reason() string
- type ListTweetResponse_Tweet
- func (*ListTweetResponse_Tweet) Descriptor() ([]byte, []int)
- func (m *ListTweetResponse_Tweet) GetId() uint64
- func (m *ListTweetResponse_Tweet) GetMessage() string
- func (*ListTweetResponse_Tweet) ProtoMessage()
- func (m *ListTweetResponse_Tweet) Reset()
- func (m *ListTweetResponse_Tweet) String() string
- func (m *ListTweetResponse_Tweet) Validate() error
- func (m *ListTweetResponse_Tweet) XXX_DiscardUnknown()
- func (m *ListTweetResponse_Tweet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTweetResponse_Tweet) XXX_Merge(src proto.Message)
- func (m *ListTweetResponse_Tweet) XXX_Size() int
- func (m *ListTweetResponse_Tweet) XXX_Unmarshal(b []byte) error
- type ListTweetResponse_TweetValidationError
- func (e ListTweetResponse_TweetValidationError) Cause() error
- func (e ListTweetResponse_TweetValidationError) Error() string
- func (e ListTweetResponse_TweetValidationError) ErrorName() string
- func (e ListTweetResponse_TweetValidationError) Field() string
- func (e ListTweetResponse_TweetValidationError) Key() bool
- func (e ListTweetResponse_TweetValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetEmail() string
- func (m *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetEmail() string
- func (m *RegisterRequest) GetPassword() string
- func (m *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)
- func (m *RegisterResponse) GetId() uint64
- func (m *RegisterResponse) GetUsername() string
- func (*RegisterResponse) ProtoMessage()
- func (m *RegisterResponse) Reset()
- func (m *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) XXX_DiscardUnknown()
- func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterResponse) XXX_Merge(src proto.Message)
- func (m *RegisterResponse) XXX_Size() int
- func (m *RegisterResponse) XXX_Unmarshal(b []byte) error
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetUsername() string
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) Validate() error
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
- type SubscribeRequestValidationError
- func (e SubscribeRequestValidationError) Cause() error
- func (e SubscribeRequestValidationError) Error() string
- func (e SubscribeRequestValidationError) ErrorName() string
- func (e SubscribeRequestValidationError) Field() string
- func (e SubscribeRequestValidationError) Key() bool
- func (e SubscribeRequestValidationError) Reason() string
- type SubscribeResponse
- func (*SubscribeResponse) Descriptor() ([]byte, []int)
- func (*SubscribeResponse) ProtoMessage()
- func (m *SubscribeResponse) Reset()
- func (m *SubscribeResponse) String() string
- func (m *SubscribeResponse) Validate() error
- func (m *SubscribeResponse) XXX_DiscardUnknown()
- func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeResponse) XXX_Merge(src proto.Message)
- func (m *SubscribeResponse) XXX_Size() int
- func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
- type SubscribeResponseValidationError
- func (e SubscribeResponseValidationError) Cause() error
- func (e SubscribeResponseValidationError) Error() string
- func (e SubscribeResponseValidationError) ErrorName() string
- func (e SubscribeResponseValidationError) Field() string
- func (e SubscribeResponseValidationError) Key() bool
- func (e SubscribeResponseValidationError) Reason() string
- type TweetServiceClient
- type TweetServiceServer
- type UnimplementedAuthServiceServer
- type UnimplementedTweetServiceServer
- type UnimplementedUserServiceServer
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterTweetServiceHandler ¶
func RegisterTweetServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTweetServiceHandler registers the http handlers for service TweetService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTweetServiceHandlerClient ¶
func RegisterTweetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TweetServiceClient) error
RegisterTweetServiceHandlerClient registers the http handlers for service TweetService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TweetServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TweetServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TweetServiceClient" to call the correct interceptors.
func RegisterTweetServiceHandlerFromEndpoint ¶
func RegisterTweetServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTweetServiceHandlerFromEndpoint is same as RegisterTweetServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTweetServiceHandlerServer ¶
func RegisterTweetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TweetServiceServer) error
RegisterTweetServiceHandlerServer registers the http handlers for service TweetService to "mux". UnaryRPC :call TweetServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterTweetServiceServer ¶
func RegisterTweetServiceServer(s *grpc.Server, srv TweetServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) }
AuthServiceServer is the server API for AuthService service.
type CreateTweetRequest ¶
type CreateTweetRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateTweetRequest) Descriptor ¶
func (*CreateTweetRequest) Descriptor() ([]byte, []int)
func (*CreateTweetRequest) GetMessage ¶
func (m *CreateTweetRequest) GetMessage() string
func (*CreateTweetRequest) ProtoMessage ¶
func (*CreateTweetRequest) ProtoMessage()
func (*CreateTweetRequest) Reset ¶
func (m *CreateTweetRequest) Reset()
func (*CreateTweetRequest) String ¶
func (m *CreateTweetRequest) String() string
func (*CreateTweetRequest) Validate ¶
func (m *CreateTweetRequest) Validate() error
Validate checks the field values on CreateTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateTweetRequest) XXX_DiscardUnknown ¶
func (m *CreateTweetRequest) XXX_DiscardUnknown()
func (*CreateTweetRequest) XXX_Marshal ¶
func (m *CreateTweetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTweetRequest) XXX_Merge ¶
func (m *CreateTweetRequest) XXX_Merge(src proto.Message)
func (*CreateTweetRequest) XXX_Size ¶
func (m *CreateTweetRequest) XXX_Size() int
func (*CreateTweetRequest) XXX_Unmarshal ¶
func (m *CreateTweetRequest) XXX_Unmarshal(b []byte) error
type CreateTweetRequestValidationError ¶
type CreateTweetRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTweetRequestValidationError is the validation error returned by CreateTweetRequest.Validate if the designated constraints aren't met.
func (CreateTweetRequestValidationError) Cause ¶
func (e CreateTweetRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTweetRequestValidationError) Error ¶
func (e CreateTweetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTweetRequestValidationError) ErrorName ¶
func (e CreateTweetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTweetRequestValidationError) Field ¶
func (e CreateTweetRequestValidationError) Field() string
Field function returns field value.
func (CreateTweetRequestValidationError) Key ¶
func (e CreateTweetRequestValidationError) Key() bool
Key function returns key value.
func (CreateTweetRequestValidationError) Reason ¶
func (e CreateTweetRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTweetResponse ¶
type CreateTweetResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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 (*CreateTweetResponse) Descriptor ¶
func (*CreateTweetResponse) Descriptor() ([]byte, []int)
func (*CreateTweetResponse) GetId ¶
func (m *CreateTweetResponse) GetId() uint64
func (*CreateTweetResponse) GetMessage ¶
func (m *CreateTweetResponse) GetMessage() string
func (*CreateTweetResponse) ProtoMessage ¶
func (*CreateTweetResponse) ProtoMessage()
func (*CreateTweetResponse) Reset ¶
func (m *CreateTweetResponse) Reset()
func (*CreateTweetResponse) String ¶
func (m *CreateTweetResponse) String() string
func (*CreateTweetResponse) Validate ¶
func (m *CreateTweetResponse) Validate() error
Validate checks the field values on CreateTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateTweetResponse) XXX_DiscardUnknown ¶
func (m *CreateTweetResponse) XXX_DiscardUnknown()
func (*CreateTweetResponse) XXX_Marshal ¶
func (m *CreateTweetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTweetResponse) XXX_Merge ¶
func (m *CreateTweetResponse) XXX_Merge(src proto.Message)
func (*CreateTweetResponse) XXX_Size ¶
func (m *CreateTweetResponse) XXX_Size() int
func (*CreateTweetResponse) XXX_Unmarshal ¶
func (m *CreateTweetResponse) XXX_Unmarshal(b []byte) error
type CreateTweetResponseValidationError ¶
type CreateTweetResponseValidationError struct {
// contains filtered or unexported fields
}
CreateTweetResponseValidationError is the validation error returned by CreateTweetResponse.Validate if the designated constraints aren't met.
func (CreateTweetResponseValidationError) Cause ¶
func (e CreateTweetResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTweetResponseValidationError) Error ¶
func (e CreateTweetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTweetResponseValidationError) ErrorName ¶
func (e CreateTweetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTweetResponseValidationError) Field ¶
func (e CreateTweetResponseValidationError) Field() string
Field function returns field value.
func (CreateTweetResponseValidationError) Key ¶
func (e CreateTweetResponseValidationError) Key() bool
Key function returns key value.
func (CreateTweetResponseValidationError) Reason ¶
func (e CreateTweetResponseValidationError) Reason() string
Reason function returns reason value.
type ListTweetRequest ¶
type ListTweetRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListTweetRequest) Descriptor ¶
func (*ListTweetRequest) Descriptor() ([]byte, []int)
func (*ListTweetRequest) ProtoMessage ¶
func (*ListTweetRequest) ProtoMessage()
func (*ListTweetRequest) Reset ¶
func (m *ListTweetRequest) Reset()
func (*ListTweetRequest) String ¶
func (m *ListTweetRequest) String() string
func (*ListTweetRequest) Validate ¶
func (m *ListTweetRequest) Validate() error
Validate checks the field values on ListTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ListTweetRequest) XXX_DiscardUnknown ¶
func (m *ListTweetRequest) XXX_DiscardUnknown()
func (*ListTweetRequest) XXX_Marshal ¶
func (m *ListTweetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTweetRequest) XXX_Merge ¶
func (m *ListTweetRequest) XXX_Merge(src proto.Message)
func (*ListTweetRequest) XXX_Size ¶
func (m *ListTweetRequest) XXX_Size() int
func (*ListTweetRequest) XXX_Unmarshal ¶
func (m *ListTweetRequest) XXX_Unmarshal(b []byte) error
type ListTweetRequestValidationError ¶
type ListTweetRequestValidationError struct {
// contains filtered or unexported fields
}
ListTweetRequestValidationError is the validation error returned by ListTweetRequest.Validate if the designated constraints aren't met.
func (ListTweetRequestValidationError) Cause ¶
func (e ListTweetRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTweetRequestValidationError) Error ¶
func (e ListTweetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTweetRequestValidationError) ErrorName ¶
func (e ListTweetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTweetRequestValidationError) Field ¶
func (e ListTweetRequestValidationError) Field() string
Field function returns field value.
func (ListTweetRequestValidationError) Key ¶
func (e ListTweetRequestValidationError) Key() bool
Key function returns key value.
func (ListTweetRequestValidationError) Reason ¶
func (e ListTweetRequestValidationError) Reason() string
Reason function returns reason value.
type ListTweetResponse ¶
type ListTweetResponse struct { Tweets []*ListTweetResponse_Tweet `protobuf:"bytes,1,rep,name=tweets,proto3" json:"tweets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListTweetResponse) Descriptor ¶
func (*ListTweetResponse) Descriptor() ([]byte, []int)
func (*ListTweetResponse) GetTweets ¶
func (m *ListTweetResponse) GetTweets() []*ListTweetResponse_Tweet
func (*ListTweetResponse) ProtoMessage ¶
func (*ListTweetResponse) ProtoMessage()
func (*ListTweetResponse) Reset ¶
func (m *ListTweetResponse) Reset()
func (*ListTweetResponse) String ¶
func (m *ListTweetResponse) String() string
func (*ListTweetResponse) Validate ¶
func (m *ListTweetResponse) Validate() error
Validate checks the field values on ListTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ListTweetResponse) XXX_DiscardUnknown ¶
func (m *ListTweetResponse) XXX_DiscardUnknown()
func (*ListTweetResponse) XXX_Marshal ¶
func (m *ListTweetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTweetResponse) XXX_Merge ¶
func (m *ListTweetResponse) XXX_Merge(src proto.Message)
func (*ListTweetResponse) XXX_Size ¶
func (m *ListTweetResponse) XXX_Size() int
func (*ListTweetResponse) XXX_Unmarshal ¶
func (m *ListTweetResponse) XXX_Unmarshal(b []byte) error
type ListTweetResponseValidationError ¶
type ListTweetResponseValidationError struct {
// contains filtered or unexported fields
}
ListTweetResponseValidationError is the validation error returned by ListTweetResponse.Validate if the designated constraints aren't met.
func (ListTweetResponseValidationError) Cause ¶
func (e ListTweetResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTweetResponseValidationError) Error ¶
func (e ListTweetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTweetResponseValidationError) ErrorName ¶
func (e ListTweetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTweetResponseValidationError) Field ¶
func (e ListTweetResponseValidationError) Field() string
Field function returns field value.
func (ListTweetResponseValidationError) Key ¶
func (e ListTweetResponseValidationError) Key() bool
Key function returns key value.
func (ListTweetResponseValidationError) Reason ¶
func (e ListTweetResponseValidationError) Reason() string
Reason function returns reason value.
type ListTweetResponse_Tweet ¶
type ListTweetResponse_Tweet struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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 (*ListTweetResponse_Tweet) Descriptor ¶
func (*ListTweetResponse_Tweet) Descriptor() ([]byte, []int)
func (*ListTweetResponse_Tweet) GetId ¶
func (m *ListTweetResponse_Tweet) GetId() uint64
func (*ListTweetResponse_Tweet) GetMessage ¶
func (m *ListTweetResponse_Tweet) GetMessage() string
func (*ListTweetResponse_Tweet) ProtoMessage ¶
func (*ListTweetResponse_Tweet) ProtoMessage()
func (*ListTweetResponse_Tweet) Reset ¶
func (m *ListTweetResponse_Tweet) Reset()
func (*ListTweetResponse_Tweet) String ¶
func (m *ListTweetResponse_Tweet) String() string
func (*ListTweetResponse_Tweet) Validate ¶
func (m *ListTweetResponse_Tweet) Validate() error
Validate checks the field values on ListTweetResponse_Tweet with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ListTweetResponse_Tweet) XXX_DiscardUnknown ¶
func (m *ListTweetResponse_Tweet) XXX_DiscardUnknown()
func (*ListTweetResponse_Tweet) XXX_Marshal ¶
func (m *ListTweetResponse_Tweet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTweetResponse_Tweet) XXX_Merge ¶
func (m *ListTweetResponse_Tweet) XXX_Merge(src proto.Message)
func (*ListTweetResponse_Tweet) XXX_Size ¶
func (m *ListTweetResponse_Tweet) XXX_Size() int
func (*ListTweetResponse_Tweet) XXX_Unmarshal ¶
func (m *ListTweetResponse_Tweet) XXX_Unmarshal(b []byte) error
type ListTweetResponse_TweetValidationError ¶
type ListTweetResponse_TweetValidationError struct {
// contains filtered or unexported fields
}
ListTweetResponse_TweetValidationError is the validation error returned by ListTweetResponse_Tweet.Validate if the designated constraints aren't met.
func (ListTweetResponse_TweetValidationError) Cause ¶
func (e ListTweetResponse_TweetValidationError) Cause() error
Cause function returns cause value.
func (ListTweetResponse_TweetValidationError) Error ¶
func (e ListTweetResponse_TweetValidationError) Error() string
Error satisfies the builtin error interface
func (ListTweetResponse_TweetValidationError) ErrorName ¶
func (e ListTweetResponse_TweetValidationError) ErrorName() string
ErrorName returns error name.
func (ListTweetResponse_TweetValidationError) Field ¶
func (e ListTweetResponse_TweetValidationError) Field() string
Field function returns field value.
func (ListTweetResponse_TweetValidationError) Key ¶
func (e ListTweetResponse_TweetValidationError) Key() bool
Key function returns key value.
func (ListTweetResponse_TweetValidationError) Reason ¶
func (e ListTweetResponse_TweetValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,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 (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetEmail ¶
func (m *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*LoginResponse) XXX_DiscardUnknown ¶
func (m *LoginResponse) XXX_DiscardUnknown()
func (*LoginResponse) XXX_Marshal ¶
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResponse) XXX_Merge ¶
func (m *LoginResponse) XXX_Merge(src proto.Message)
func (*LoginResponse) XXX_Size ¶
func (m *LoginResponse) XXX_Size() int
func (*LoginResponse) XXX_Unmarshal ¶
func (m *LoginResponse) XXX_Unmarshal(b []byte) error
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetEmail ¶
func (m *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶
func (m *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (m *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*RegisterRequest) XXX_DiscardUnknown ¶
func (m *RegisterRequest) XXX_DiscardUnknown()
func (*RegisterRequest) XXX_Marshal ¶
func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRequest) XXX_Merge ¶
func (m *RegisterRequest) XXX_Merge(src proto.Message)
func (*RegisterRequest) XXX_Size ¶
func (m *RegisterRequest) XXX_Size() int
func (*RegisterRequest) XXX_Unmarshal ¶
func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterResponse) Descriptor ¶
func (*RegisterResponse) Descriptor() ([]byte, []int)
func (*RegisterResponse) GetId ¶
func (m *RegisterResponse) GetId() uint64
func (*RegisterResponse) GetUsername ¶
func (m *RegisterResponse) GetUsername() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) Reset ¶
func (m *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (m *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*RegisterResponse) XXX_DiscardUnknown ¶
func (m *RegisterResponse) XXX_DiscardUnknown()
func (*RegisterResponse) XXX_Marshal ¶
func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterResponse) XXX_Merge ¶
func (m *RegisterResponse) XXX_Merge(src proto.Message)
func (*RegisterResponse) XXX_Size ¶
func (m *RegisterResponse) XXX_Size() int
func (*RegisterResponse) XXX_Unmarshal ¶
func (m *RegisterResponse) XXX_Unmarshal(b []byte) error
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type SubscribeRequest ¶
type SubscribeRequest struct { Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetUsername ¶
func (m *SubscribeRequest) GetUsername() string
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) Validate ¶
func (m *SubscribeRequest) Validate() error
Validate checks the field values on SubscribeRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
type SubscribeRequestValidationError ¶
type SubscribeRequestValidationError struct {
// contains filtered or unexported fields
}
SubscribeRequestValidationError is the validation error returned by SubscribeRequest.Validate if the designated constraints aren't met.
func (SubscribeRequestValidationError) Cause ¶
func (e SubscribeRequestValidationError) Cause() error
Cause function returns cause value.
func (SubscribeRequestValidationError) Error ¶
func (e SubscribeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SubscribeRequestValidationError) ErrorName ¶
func (e SubscribeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SubscribeRequestValidationError) Field ¶
func (e SubscribeRequestValidationError) Field() string
Field function returns field value.
func (SubscribeRequestValidationError) Key ¶
func (e SubscribeRequestValidationError) Key() bool
Key function returns key value.
func (SubscribeRequestValidationError) Reason ¶
func (e SubscribeRequestValidationError) Reason() string
Reason function returns reason value.
type SubscribeResponse ¶
type SubscribeResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
func (*SubscribeResponse) Validate ¶
func (m *SubscribeResponse) Validate() error
Validate checks the field values on SubscribeResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SubscribeResponse) XXX_DiscardUnknown ¶
func (m *SubscribeResponse) XXX_DiscardUnknown()
func (*SubscribeResponse) XXX_Marshal ¶
func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeResponse) XXX_Merge ¶
func (m *SubscribeResponse) XXX_Merge(src proto.Message)
func (*SubscribeResponse) XXX_Size ¶
func (m *SubscribeResponse) XXX_Size() int
func (*SubscribeResponse) XXX_Unmarshal ¶
func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
type SubscribeResponseValidationError ¶
type SubscribeResponseValidationError struct {
// contains filtered or unexported fields
}
SubscribeResponseValidationError is the validation error returned by SubscribeResponse.Validate if the designated constraints aren't met.
func (SubscribeResponseValidationError) Cause ¶
func (e SubscribeResponseValidationError) Cause() error
Cause function returns cause value.
func (SubscribeResponseValidationError) Error ¶
func (e SubscribeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SubscribeResponseValidationError) ErrorName ¶
func (e SubscribeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SubscribeResponseValidationError) Field ¶
func (e SubscribeResponseValidationError) Field() string
Field function returns field value.
func (SubscribeResponseValidationError) Key ¶
func (e SubscribeResponseValidationError) Key() bool
Key function returns key value.
func (SubscribeResponseValidationError) Reason ¶
func (e SubscribeResponseValidationError) Reason() string
Reason function returns reason value.
type TweetServiceClient ¶
type TweetServiceClient interface { CreateTweet(ctx context.Context, in *CreateTweetRequest, opts ...grpc.CallOption) (*CreateTweetResponse, error) ListTweet(ctx context.Context, in *ListTweetRequest, opts ...grpc.CallOption) (*ListTweetResponse, error) }
TweetServiceClient is the client API for TweetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTweetServiceClient ¶
func NewTweetServiceClient(cc *grpc.ClientConn) TweetServiceClient
type TweetServiceServer ¶
type TweetServiceServer interface { CreateTweet(context.Context, *CreateTweetRequest) (*CreateTweetResponse, error) ListTweet(context.Context, *ListTweetRequest) (*ListTweetResponse, error) }
TweetServiceServer is the server API for TweetService service.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) Login ¶
func (*UnimplementedAuthServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (*UnimplementedAuthServiceServer) Register ¶
func (*UnimplementedAuthServiceServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
type UnimplementedTweetServiceServer ¶
type UnimplementedTweetServiceServer struct { }
UnimplementedTweetServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTweetServiceServer) CreateTweet ¶
func (*UnimplementedTweetServiceServer) CreateTweet(ctx context.Context, req *CreateTweetRequest) (*CreateTweetResponse, error)
func (*UnimplementedTweetServiceServer) ListTweet ¶
func (*UnimplementedTweetServiceServer) ListTweet(ctx context.Context, req *ListTweetRequest) (*ListTweetResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) Subscribe ¶
func (*UnimplementedUserServiceServer) Subscribe(ctx context.Context, req *SubscribeRequest) (*SubscribeResponse, error)
type UserServiceClient ¶
type UserServiceClient interface {
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error)
}
UserServiceServer is the server API for UserService service.