go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/auth/proto Index | Files

package proto

import "github.com/vardius/go-api-boilerplate/cmd/auth/proto"

Index

Package Files

authentication.pb.go

func RegisterAuthenticationServiceServer Uses

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

type AuthenticationServiceClient Uses

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.

func NewAuthenticationServiceClient Uses

func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient

type AuthenticationServiceServer Uses

type AuthenticationServiceServer interface {
    GetTokenInfo(context.Context, *GetTokenInfoRequest) (*GetTokenInfoResponse, error)
}

AuthenticationServiceServer is the server API for AuthenticationService service.

type GetTokenInfoRequest Uses

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 Uses

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

func (*GetTokenInfoRequest) GetToken Uses

func (m *GetTokenInfoRequest) GetToken() string

func (*GetTokenInfoRequest) ProtoMessage Uses

func (*GetTokenInfoRequest) ProtoMessage()

func (*GetTokenInfoRequest) Reset Uses

func (m *GetTokenInfoRequest) Reset()

func (*GetTokenInfoRequest) String Uses

func (m *GetTokenInfoRequest) String() string

func (*GetTokenInfoRequest) XXX_DiscardUnknown Uses

func (m *GetTokenInfoRequest) XXX_DiscardUnknown()

func (*GetTokenInfoRequest) XXX_Marshal Uses

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

func (*GetTokenInfoRequest) XXX_Merge Uses

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

func (*GetTokenInfoRequest) XXX_Size Uses

func (m *GetTokenInfoRequest) XXX_Size() int

func (*GetTokenInfoRequest) XXX_Unmarshal Uses

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

type GetTokenInfoResponse Uses

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 Uses

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

func (*GetTokenInfoResponse) GetClientId Uses

func (m *GetTokenInfoResponse) GetClientId() string

func (*GetTokenInfoResponse) GetExpiresIn Uses

func (m *GetTokenInfoResponse) GetExpiresIn() int64

func (*GetTokenInfoResponse) GetUserId Uses

func (m *GetTokenInfoResponse) GetUserId() string

func (*GetTokenInfoResponse) ProtoMessage Uses

func (*GetTokenInfoResponse) ProtoMessage()

func (*GetTokenInfoResponse) Reset Uses

func (m *GetTokenInfoResponse) Reset()

func (*GetTokenInfoResponse) String Uses

func (m *GetTokenInfoResponse) String() string

func (*GetTokenInfoResponse) XXX_DiscardUnknown Uses

func (m *GetTokenInfoResponse) XXX_DiscardUnknown()

func (*GetTokenInfoResponse) XXX_Marshal Uses

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

func (*GetTokenInfoResponse) XXX_Merge Uses

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

func (*GetTokenInfoResponse) XXX_Size Uses

func (m *GetTokenInfoResponse) XXX_Size() int

func (*GetTokenInfoResponse) XXX_Unmarshal Uses

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

type UnimplementedAuthenticationServiceServer Uses

type UnimplementedAuthenticationServiceServer struct {
}

UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthenticationServiceServer) GetTokenInfo Uses

func (*UnimplementedAuthenticationServiceServer) GetTokenInfo(ctx context.Context, req *GetTokenInfoRequest) (*GetTokenInfoResponse, error)

Package proto imports 7 packages (graph) and is imported by 3 packages. Updated 2020-08-04. Refresh now. Tools for package owners.