proto

package
v0.0.1-0...-6deec57 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 8 Imported by: 0

README

proto

Package proto contains protocol buffer code to populate

Generating client and server code

To generate the gRPC client and server interfaces from *.proto service definition. Use the protocol buffer compiler protoc with a special gRPC Go plugin. For more info read

From this directory run:

$ make build

Running this command generates the following files in this directory:

  • *.pb.go

This contains:

All the protocol buffer code to populate, serialize, and retrieve our request and response message types An interface type (or stub) for clients to call with the methods defined in the services. An interface type for servers to implement, also with the methods defined in the services.


Package proto contains protocol buffer code to populate

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthenticationServiceServer

func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer)

Types

type AuthenticationServiceClient

type AuthenticationServiceClient interface {
	ValidationBearerToken(ctx context.Context, in *ValidationBearerTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DispatchClientCommand(ctx context.Context, in *DispatchAuthCommandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DispatchTokenCommand(ctx context.Context, in *DispatchAuthCommandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthenticationServiceClient is the client API for AuthenticationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AuthenticationServiceServer

type AuthenticationServiceServer interface {
	ValidationBearerToken(context.Context, *ValidationBearerTokenRequest) (*emptypb.Empty, error)
	DispatchClientCommand(context.Context, *DispatchAuthCommandRequest) (*emptypb.Empty, error)
	DispatchTokenCommand(context.Context, *DispatchAuthCommandRequest) (*emptypb.Empty, error)
}

AuthenticationServiceServer is the server API for AuthenticationService service.

type DispatchAuthCommandRequest

type DispatchAuthCommandRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Payload              []byte   `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DispatchAuthCommandRequest is passed when dispatching

func (*DispatchAuthCommandRequest) Descriptor

func (*DispatchAuthCommandRequest) Descriptor() ([]byte, []int)

func (*DispatchAuthCommandRequest) GetName

func (m *DispatchAuthCommandRequest) GetName() string

func (*DispatchAuthCommandRequest) GetPayload

func (m *DispatchAuthCommandRequest) GetPayload() []byte

func (*DispatchAuthCommandRequest) ProtoMessage

func (*DispatchAuthCommandRequest) ProtoMessage()

func (*DispatchAuthCommandRequest) Reset

func (m *DispatchAuthCommandRequest) Reset()

func (*DispatchAuthCommandRequest) String

func (m *DispatchAuthCommandRequest) String() string

func (*DispatchAuthCommandRequest) XXX_DiscardUnknown

func (m *DispatchAuthCommandRequest) XXX_DiscardUnknown()

func (*DispatchAuthCommandRequest) XXX_Marshal

func (m *DispatchAuthCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DispatchAuthCommandRequest) XXX_Merge

func (m *DispatchAuthCommandRequest) XXX_Merge(src proto.Message)

func (*DispatchAuthCommandRequest) XXX_Size

func (m *DispatchAuthCommandRequest) XXX_Size() int

func (*DispatchAuthCommandRequest) XXX_Unmarshal

func (m *DispatchAuthCommandRequest) XXX_Unmarshal(b []byte) error

type UnimplementedAuthenticationServiceServer

type UnimplementedAuthenticationServiceServer struct {
}

UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthenticationServiceServer) DispatchClientCommand

func (*UnimplementedAuthenticationServiceServer) DispatchTokenCommand

func (*UnimplementedAuthenticationServiceServer) ValidationBearerToken

type ValidationBearerTokenRequest

type ValidationBearerTokenRequest 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:"-"`
}

ValidationBearerTokenRequest validates auth token

func (*ValidationBearerTokenRequest) Descriptor

func (*ValidationBearerTokenRequest) Descriptor() ([]byte, []int)

func (*ValidationBearerTokenRequest) GetToken

func (m *ValidationBearerTokenRequest) GetToken() string

func (*ValidationBearerTokenRequest) ProtoMessage

func (*ValidationBearerTokenRequest) ProtoMessage()

func (*ValidationBearerTokenRequest) Reset

func (m *ValidationBearerTokenRequest) Reset()

func (*ValidationBearerTokenRequest) String

func (*ValidationBearerTokenRequest) XXX_DiscardUnknown

func (m *ValidationBearerTokenRequest) XXX_DiscardUnknown()

func (*ValidationBearerTokenRequest) XXX_Marshal

func (m *ValidationBearerTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationBearerTokenRequest) XXX_Merge

func (m *ValidationBearerTokenRequest) XXX_Merge(src proto.Message)

func (*ValidationBearerTokenRequest) XXX_Size

func (m *ValidationBearerTokenRequest) XXX_Size() int

func (*ValidationBearerTokenRequest) XXX_Unmarshal

func (m *ValidationBearerTokenRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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