Documentation ¶
Index ¶
- Variables
- func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterEngineServiceServer(s *grpc.Server, srv EngineServiceServer)
- type APIServiceClient
- type APIServiceServer
- type AccessTokenRequest
- func (*AccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccessTokenRequest) GetRefreshToken() string
- func (*AccessTokenRequest) ProtoMessage()
- func (x *AccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *AccessTokenRequest) Reset()
- func (x *AccessTokenRequest) String() string
- func (this *AccessTokenRequest) Validate() error
- type AuthServiceClient
- type AuthServiceServer
- type Empty
- type EngineServiceClient
- type EngineServiceServer
- type Message
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingResponse) GetContent() string
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (x *PingResponse) String() string
- func (this *PingResponse) Validate() error
- type UnimplementedAPIServiceServer
- type UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) GetSignInToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error)
- func (*UnimplementedAuthServiceServer) GetSignUpToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error)
- func (*UnimplementedAuthServiceServer) Ping(context.Context, *Empty) (*PingResponse, error)
- func (*UnimplementedAuthServiceServer) RefreshAccessToken(context.Context, *AccessTokenRequest) (*UserTokenResponse, error)
- type UnimplementedEngineServiceServer
- type UserTokenRequest
- func (*UserTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserTokenRequest) GetPassword() string
- func (x *UserTokenRequest) GetUsername() string
- func (*UserTokenRequest) ProtoMessage()
- func (x *UserTokenRequest) ProtoReflect() protoreflect.Message
- func (x *UserTokenRequest) Reset()
- func (x *UserTokenRequest) String() string
- func (this *UserTokenRequest) Validate() error
- type UserTokenResponse
- func (*UserTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserTokenResponse) GetAccessToken() string
- func (x *UserTokenResponse) GetRefreshToken() string
- func (*UserTokenResponse) ProtoMessage()
- func (x *UserTokenResponse) ProtoReflect() protoreflect.Message
- func (x *UserTokenResponse) Reset()
- func (x *UserTokenResponse) String() string
- func (this *UserTokenResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
var File_auth_proto protoreflect.FileDescriptor
var File_common_proto protoreflect.FileDescriptor
var File_engine_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServiceServer ¶
func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterEngineServiceServer ¶
func RegisterEngineServiceServer(s *grpc.Server, srv EngineServiceServer)
Types ¶
type APIServiceClient ¶
type APIServiceClient interface {
SayHello(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
APIServiceClient is the client API for APIService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIServiceClient ¶
func NewAPIServiceClient(cc grpc.ClientConnInterface) APIServiceClient
type APIServiceServer ¶
APIServiceServer is the server API for APIService service.
type AccessTokenRequest ¶
type AccessTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*AccessTokenRequest) Descriptor
deprecated
func (*AccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccessTokenRequest.ProtoReflect.Descriptor instead.
func (*AccessTokenRequest) GetRefreshToken ¶
func (x *AccessTokenRequest) GetRefreshToken() string
func (*AccessTokenRequest) ProtoMessage ¶
func (*AccessTokenRequest) ProtoMessage()
func (*AccessTokenRequest) ProtoReflect ¶
func (x *AccessTokenRequest) ProtoReflect() protoreflect.Message
func (*AccessTokenRequest) Reset ¶
func (x *AccessTokenRequest) Reset()
func (*AccessTokenRequest) String ¶
func (x *AccessTokenRequest) String() string
func (*AccessTokenRequest) Validate ¶
func (this *AccessTokenRequest) Validate() error
type AuthServiceClient ¶
type AuthServiceClient interface { Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error) GetSignUpToken(ctx context.Context, in *UserTokenRequest, opts ...grpc.CallOption) (*UserTokenResponse, error) GetSignInToken(ctx context.Context, in *UserTokenRequest, opts ...grpc.CallOption) (*UserTokenResponse, error) RefreshAccessToken(ctx context.Context, in *AccessTokenRequest, opts ...grpc.CallOption) (*UserTokenResponse, 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.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Ping(context.Context, *Empty) (*PingResponse, error) GetSignUpToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error) GetSignInToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error) RefreshAccessToken(context.Context, *AccessTokenRequest) (*UserTokenResponse, error) }
AuthServiceServer is the server API for AuthService service.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EngineServiceClient ¶
type EngineServiceClient interface {
SayHello(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
EngineServiceClient is the client API for EngineService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEngineServiceClient ¶
func NewEngineServiceClient(cc grpc.ClientConnInterface) EngineServiceClient
type EngineServiceServer ¶
EngineServiceServer is the server API for EngineService service.
type Message ¶
type Message struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type PingResponse ¶
type PingResponse struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetContent ¶
func (x *PingResponse) GetContent() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
func (*PingResponse) Validate ¶
func (this *PingResponse) Validate() error
type UnimplementedAPIServiceServer ¶
type UnimplementedAPIServiceServer struct { }
UnimplementedAPIServiceServer can be embedded to have forward compatible implementations.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) GetSignInToken ¶
func (*UnimplementedAuthServiceServer) GetSignInToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error)
func (*UnimplementedAuthServiceServer) GetSignUpToken ¶
func (*UnimplementedAuthServiceServer) GetSignUpToken(context.Context, *UserTokenRequest) (*UserTokenResponse, error)
func (*UnimplementedAuthServiceServer) Ping ¶
func (*UnimplementedAuthServiceServer) Ping(context.Context, *Empty) (*PingResponse, error)
func (*UnimplementedAuthServiceServer) RefreshAccessToken ¶
func (*UnimplementedAuthServiceServer) RefreshAccessToken(context.Context, *AccessTokenRequest) (*UserTokenResponse, error)
type UnimplementedEngineServiceServer ¶
type UnimplementedEngineServiceServer struct { }
UnimplementedEngineServiceServer can be embedded to have forward compatible implementations.
type UserTokenRequest ¶
type UserTokenRequest 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 }
func (*UserTokenRequest) Descriptor
deprecated
func (*UserTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserTokenRequest.ProtoReflect.Descriptor instead.
func (*UserTokenRequest) GetPassword ¶
func (x *UserTokenRequest) GetPassword() string
func (*UserTokenRequest) GetUsername ¶
func (x *UserTokenRequest) GetUsername() string
func (*UserTokenRequest) ProtoMessage ¶
func (*UserTokenRequest) ProtoMessage()
func (*UserTokenRequest) ProtoReflect ¶
func (x *UserTokenRequest) ProtoReflect() protoreflect.Message
func (*UserTokenRequest) Reset ¶
func (x *UserTokenRequest) Reset()
func (*UserTokenRequest) String ¶
func (x *UserTokenRequest) String() string
func (*UserTokenRequest) Validate ¶
func (this *UserTokenRequest) Validate() error
type UserTokenResponse ¶
type UserTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*UserTokenResponse) Descriptor
deprecated
func (*UserTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserTokenResponse.ProtoReflect.Descriptor instead.
func (*UserTokenResponse) GetAccessToken ¶
func (x *UserTokenResponse) GetAccessToken() string
func (*UserTokenResponse) GetRefreshToken ¶
func (x *UserTokenResponse) GetRefreshToken() string
func (*UserTokenResponse) ProtoMessage ¶
func (*UserTokenResponse) ProtoMessage()
func (*UserTokenResponse) ProtoReflect ¶
func (x *UserTokenResponse) ProtoReflect() protoreflect.Message
func (*UserTokenResponse) Reset ¶
func (x *UserTokenResponse) Reset()
func (*UserTokenResponse) String ¶
func (x *UserTokenResponse) String() string
func (*UserTokenResponse) Validate ¶
func (this *UserTokenResponse) Validate() error