proto

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_token_provider_proto protoreflect.FileDescriptor
View Source
var TokenProvider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.TokenProvider",
	HandlerType: (*TokenProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetToken",
			Handler:    _TokenProvider_GetToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "token-provider.proto",
}

TokenProvider_ServiceDesc is the grpc.ServiceDesc for TokenProvider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTokenProviderServer

func RegisterTokenProviderServer(s grpc.ServiceRegistrar, srv TokenProviderServer)

Types

type TokenProviderClient

type TokenProviderClient interface {
	GetToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
}

TokenProviderClient is the client API for TokenProvider 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 TokenProviderServer

type TokenProviderServer interface {
	GetToken(context.Context, *TokenRequest) (*TokenResponse, error)
	// contains filtered or unexported methods
}

TokenProviderServer is the server API for TokenProvider service. All implementations must embed UnimplementedTokenProviderServer for forward compatibility

type TokenRequest

type TokenRequest struct {
	Params []string `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenRequest) Descriptor deprecated

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

Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.

func (*TokenRequest) GetParams

func (x *TokenRequest) GetParams() []string

func (*TokenRequest) ProtoMessage

func (*TokenRequest) ProtoMessage()

func (*TokenRequest) ProtoReflect added in v0.3.4

func (x *TokenRequest) ProtoReflect() protoreflect.Message

func (*TokenRequest) Reset

func (x *TokenRequest) Reset()

func (*TokenRequest) String

func (x *TokenRequest) String() string

type TokenResponse

type TokenResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Status  int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Token   string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenResponse) Descriptor deprecated

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

Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.

func (*TokenResponse) GetStatus

func (x *TokenResponse) GetStatus() int32

func (*TokenResponse) GetSuccess

func (x *TokenResponse) GetSuccess() bool

func (*TokenResponse) GetToken

func (x *TokenResponse) GetToken() string

func (*TokenResponse) ProtoMessage

func (*TokenResponse) ProtoMessage()

func (*TokenResponse) ProtoReflect added in v0.3.4

func (x *TokenResponse) ProtoReflect() protoreflect.Message

func (*TokenResponse) Reset

func (x *TokenResponse) Reset()

func (*TokenResponse) String

func (x *TokenResponse) String() string

type UnimplementedTokenProviderServer added in v0.3.4

type UnimplementedTokenProviderServer struct {
}

UnimplementedTokenProviderServer must be embedded to have forward compatible implementations.

func (UnimplementedTokenProviderServer) GetToken added in v0.3.4

type UnsafeTokenProviderServer added in v0.3.4

type UnsafeTokenProviderServer interface {
	// contains filtered or unexported methods
}

UnsafeTokenProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TokenProviderServer will result in compilation errors.

Jump to

Keyboard shortcuts

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