proto

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 7 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 {
	GetTokenInfo(ctx context.Context, in *GetTokenInfoRequest, opts ...grpc.CallOption) (*GetTokenInfoResponse, 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 {
	GetTokenInfo(context.Context, *GetTokenInfoRequest) (*GetTokenInfoResponse, error)
}

AuthenticationServiceServer is the server API for AuthenticationService service.

type GetTokenInfoRequest

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

GetTokenInfoRequest is passed when dispatching

func (*GetTokenInfoRequest) Descriptor

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

func (*GetTokenInfoRequest) GetToken

func (m *GetTokenInfoRequest) GetToken() string

func (*GetTokenInfoRequest) ProtoMessage

func (*GetTokenInfoRequest) ProtoMessage()

func (*GetTokenInfoRequest) Reset

func (m *GetTokenInfoRequest) Reset()

func (*GetTokenInfoRequest) String

func (m *GetTokenInfoRequest) String() string

func (*GetTokenInfoRequest) XXX_DiscardUnknown

func (m *GetTokenInfoRequest) XXX_DiscardUnknown()

func (*GetTokenInfoRequest) XXX_Marshal

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

func (*GetTokenInfoRequest) XXX_Merge

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

func (*GetTokenInfoRequest) XXX_Size

func (m *GetTokenInfoRequest) XXX_Size() int

func (*GetTokenInfoRequest) XXX_Unmarshal

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

type GetTokenInfoResponse

type GetTokenInfoResponse struct {
	ExpiresIn            int64    `protobuf:"varint,1,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
	ClientId             string   `protobuf:"bytes,2,opt,name=clientId,proto3" json:"clientId,omitempty"`
	UserId               string   `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetTokenInfoResponse return auth token information after successful verification

func (*GetTokenInfoResponse) Descriptor

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

func (*GetTokenInfoResponse) GetClientId

func (m *GetTokenInfoResponse) GetClientId() string

func (*GetTokenInfoResponse) GetExpiresIn

func (m *GetTokenInfoResponse) GetExpiresIn() int64

func (*GetTokenInfoResponse) GetUserId

func (m *GetTokenInfoResponse) GetUserId() string

func (*GetTokenInfoResponse) ProtoMessage

func (*GetTokenInfoResponse) ProtoMessage()

func (*GetTokenInfoResponse) Reset

func (m *GetTokenInfoResponse) Reset()

func (*GetTokenInfoResponse) String

func (m *GetTokenInfoResponse) String() string

func (*GetTokenInfoResponse) XXX_DiscardUnknown

func (m *GetTokenInfoResponse) XXX_DiscardUnknown()

func (*GetTokenInfoResponse) XXX_Marshal

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

func (*GetTokenInfoResponse) XXX_Merge

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

func (*GetTokenInfoResponse) XXX_Size

func (m *GetTokenInfoResponse) XXX_Size() int

func (*GetTokenInfoResponse) XXX_Unmarshal

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

type UnimplementedAuthenticationServiceServer

type UnimplementedAuthenticationServiceServer struct {
}

UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthenticationServiceServer) GetTokenInfo

Jump to

Keyboard shortcuts

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