v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const OperationVerifierSayHello = "/verifier.v1.Verifier/SayHello"
View Source
const (
	Verifier_SayHello_FullMethodName = "/verifier.v1.Verifier/SayHello"
)

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "VERIFIER_UNSPECIFIED",
		1: "USER_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"VERIFIER_UNSPECIFIED": 0,
		"USER_NOT_FOUND":       1,
	}
)

Enum value maps for ErrorReason.

View Source
var File_verifier_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_verifier_v1_verifier_proto protoreflect.FileDescriptor
View Source
var Verifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "verifier.v1.Verifier",
	HandlerType: (*VerifierServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Verifier_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "verifier/v1/verifier.proto",
}

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

Functions

func RegisterVerifierHTTPServer

func RegisterVerifierHTTPServer(s *http.Server, srv VerifierHTTPServer)

func RegisterVerifierServer

func RegisterVerifierServer(s grpc.ServiceRegistrar, srv VerifierServer)

Types

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_VERIFIER_UNSPECIFIED ErrorReason = 0
	ErrorReason_USER_NOT_FOUND       ErrorReason = 1
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloReply) Descriptor deprecated

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

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetMessage

func (x *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

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

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

type HelloRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type UnimplementedVerifierServer

type UnimplementedVerifierServer struct {
}

UnimplementedVerifierServer must be embedded to have forward compatible implementations.

func (UnimplementedVerifierServer) SayHello

type UnsafeVerifierServer

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

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

type VerifierClient

type VerifierClient interface {
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

VerifierClient is the client API for Verifier 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.

func NewVerifierClient

func NewVerifierClient(cc grpc.ClientConnInterface) VerifierClient

type VerifierHTTPClient

type VerifierHTTPClient interface {
	SayHello(ctx context.Context, req *HelloRequest, opts ...http.CallOption) (rsp *HelloReply, err error)
}

func NewVerifierHTTPClient

func NewVerifierHTTPClient(client *http.Client) VerifierHTTPClient

type VerifierHTTPClientImpl

type VerifierHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*VerifierHTTPClientImpl) SayHello

type VerifierHTTPServer

type VerifierHTTPServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

type VerifierServer

type VerifierServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	// contains filtered or unexported methods
}

VerifierServer is the server API for Verifier service. All implementations must embed UnimplementedVerifierServer for forward compatibility

Jump to

Keyboard shortcuts

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