Documentation ¶
Overview ¶
Package magellanv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
- func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceLoginRequest
- func (*AuthenticationServiceLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationServiceLoginRequest) GetAuthenticationType() AuthenticationType
- func (*AuthenticationServiceLoginRequest) ProtoMessage()
- func (x *AuthenticationServiceLoginRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticationServiceLoginRequest) Reset()
- func (x *AuthenticationServiceLoginRequest) String() string
- type AuthenticationServiceLoginResponse
- func (*AuthenticationServiceLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationServiceLoginResponse) GetMessage() string
- func (*AuthenticationServiceLoginResponse) ProtoMessage()
- func (x *AuthenticationServiceLoginResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticationServiceLoginResponse) Reset()
- func (x *AuthenticationServiceLoginResponse) String() string
- type AuthenticationServiceServer
- type AuthenticationType
- func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor
- func (x AuthenticationType) Enum() *AuthenticationType
- func (AuthenticationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthenticationType) Number() protoreflect.EnumNumber
- func (x AuthenticationType) String() string
- func (AuthenticationType) Type() protoreflect.EnumType
- type UnimplementedAuthenticationServiceServer
- type UnsafeAuthenticationServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( AuthenticationType_name = map[int32]string{ 0: "AUTHENTICATION_TYPE_UNSPECIFIED", 1: "AUTHENTICATION_TYPE_BIKO", 2: "AUTHENTICATION_TYPE_GMAIL", } AuthenticationType_value = map[string]int32{ "AUTHENTICATION_TYPE_UNSPECIFIED": 0, "AUTHENTICATION_TYPE_BIKO": 1, "AUTHENTICATION_TYPE_GMAIL": 2, } )
Enum value maps for AuthenticationType.
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "magellan.v1.AuthenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthenticationService_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "magellan/v1/authentication_service.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_magellan_v1_authentication_service_login_proto protoreflect.FileDescriptor
var File_magellan_v1_authentication_service_proto protoreflect.FileDescriptor
var File_magellan_v1_authentication_type_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceHandler ¶
func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthenticationServiceHandler registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthenticationServiceHandlerClient ¶
func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
RegisterAuthenticationServiceHandlerClient registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationServiceClient" to call the correct interceptors.
func RegisterAuthenticationServiceHandlerFromEndpoint ¶
func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthenticationServiceHandlerFromEndpoint is same as RegisterAuthenticationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthenticationServiceHandlerServer ¶
func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
RegisterAuthenticationServiceHandlerServer registers the http handlers for service AuthenticationService to "mux". UnaryRPC :call AuthenticationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthenticationServiceHandlerFromEndpoint instead.
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Login // // {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. // It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". Login(ctx context.Context, in *AuthenticationServiceLoginRequest, opts ...grpc.CallOption) (*AuthenticationServiceLoginResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceLoginRequest ¶
type AuthenticationServiceLoginRequest struct { AuthenticationType AuthenticationType `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AuthenticationServiceLoginRequest) Descriptor
deprecated
func (*AuthenticationServiceLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationServiceLoginRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationServiceLoginRequest) GetAuthenticationType ¶
func (x *AuthenticationServiceLoginRequest) GetAuthenticationType() AuthenticationType
func (*AuthenticationServiceLoginRequest) ProtoMessage ¶
func (*AuthenticationServiceLoginRequest) ProtoMessage()
func (*AuthenticationServiceLoginRequest) ProtoReflect ¶
func (x *AuthenticationServiceLoginRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationServiceLoginRequest) Reset ¶
func (x *AuthenticationServiceLoginRequest) Reset()
func (*AuthenticationServiceLoginRequest) String ¶
func (x *AuthenticationServiceLoginRequest) String() string
type AuthenticationServiceLoginResponse ¶
type AuthenticationServiceLoginResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationServiceLoginResponse) Descriptor
deprecated
func (*AuthenticationServiceLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationServiceLoginResponse.ProtoReflect.Descriptor instead.
func (*AuthenticationServiceLoginResponse) GetMessage ¶
func (x *AuthenticationServiceLoginResponse) GetMessage() string
func (*AuthenticationServiceLoginResponse) ProtoMessage ¶
func (*AuthenticationServiceLoginResponse) ProtoMessage()
func (*AuthenticationServiceLoginResponse) ProtoReflect ¶
func (x *AuthenticationServiceLoginResponse) ProtoReflect() protoreflect.Message
func (*AuthenticationServiceLoginResponse) Reset ¶
func (x *AuthenticationServiceLoginResponse) Reset()
func (*AuthenticationServiceLoginResponse) String ¶
func (x *AuthenticationServiceLoginResponse) String() string
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { // Login // // {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. // It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". Login(context.Context, *AuthenticationServiceLoginRequest) (*AuthenticationServiceLoginResponse, error) }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations should embed UnimplementedAuthenticationServiceServer for forward compatibility
type AuthenticationType ¶
type AuthenticationType int32
const ( AuthenticationType_AUTHENTICATION_TYPE_UNSPECIFIED AuthenticationType = 0 AuthenticationType_AUTHENTICATION_TYPE_BIKO AuthenticationType = 1 AuthenticationType_AUTHENTICATION_TYPE_GMAIL AuthenticationType = 2 )
func (AuthenticationType) Descriptor ¶
func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor
func (AuthenticationType) Enum ¶
func (x AuthenticationType) Enum() *AuthenticationType
func (AuthenticationType) EnumDescriptor
deprecated
func (AuthenticationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthenticationType.Descriptor instead.
func (AuthenticationType) Number ¶
func (x AuthenticationType) Number() protoreflect.EnumNumber
func (AuthenticationType) String ¶
func (x AuthenticationType) String() string
func (AuthenticationType) Type ¶
func (AuthenticationType) Type() protoreflect.EnumType
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer should be embedded to have forward compatible implementations.
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.