magellanv1

package
v0.0.0-...-84fa978 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package magellanv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
var File_magellan_v1_authentication_service_login_proto protoreflect.FileDescriptor
View Source
var File_magellan_v1_authentication_service_proto protoreflect.FileDescriptor
View Source
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.

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 (*AuthenticationServiceLoginRequest) Reset

func (*AuthenticationServiceLoginRequest) 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 (*AuthenticationServiceLoginResponse) ProtoMessage

func (*AuthenticationServiceLoginResponse) ProtoMessage()

func (*AuthenticationServiceLoginResponse) ProtoReflect

func (*AuthenticationServiceLoginResponse) Reset

func (*AuthenticationServiceLoginResponse) 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) Enum

func (AuthenticationType) EnumDescriptor deprecated

func (AuthenticationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthenticationType.Descriptor instead.

func (AuthenticationType) Number

func (AuthenticationType) String

func (x AuthenticationType) String() string

func (AuthenticationType) Type

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.

Jump to

Keyboard shortcuts

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