protos

package
v0.0.0-...-7751202 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_registrar_proto protoreflect.FileDescriptor
View Source
var Registrar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "registrar.Registrar",
	HandlerType: (*RegistrarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterDid",
			Handler:    _Registrar_RegisterDid_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/registrar.proto",
}

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

Functions

func RegisterRegistrarServer

func RegisterRegistrarServer(s grpc.ServiceRegistrar, srv RegistrarServer)

Types

type RegistrarClient

type RegistrarClient interface {
	RegisterDid(ctx context.Context, in *RegistrarRequest, opts ...grpc.CallOption) (*RegistrarResponse, error)
}

RegistrarClient is the client API for Registrar 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 NewRegistrarClient

func NewRegistrarClient(cc grpc.ClientConnInterface) RegistrarClient

type RegistrarRequest

type RegistrarRequest struct {
	Did         string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	DidDocument string `protobuf:"bytes,2,opt,name=didDocument,proto3" json:"didDocument,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrarRequest) Descriptor deprecated

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

Deprecated: Use RegistrarRequest.ProtoReflect.Descriptor instead.

func (*RegistrarRequest) GetDid

func (x *RegistrarRequest) GetDid() string

func (*RegistrarRequest) GetDidDocument

func (x *RegistrarRequest) GetDidDocument() string

func (*RegistrarRequest) ProtoMessage

func (*RegistrarRequest) ProtoMessage()

func (*RegistrarRequest) ProtoReflect

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

func (*RegistrarRequest) Reset

func (x *RegistrarRequest) Reset()

func (*RegistrarRequest) String

func (x *RegistrarRequest) String() string

type RegistrarResponse

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

func (*RegistrarResponse) Descriptor deprecated

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

Deprecated: Use RegistrarResponse.ProtoReflect.Descriptor instead.

func (*RegistrarResponse) GetResult

func (x *RegistrarResponse) GetResult() string

func (*RegistrarResponse) ProtoMessage

func (*RegistrarResponse) ProtoMessage()

func (*RegistrarResponse) ProtoReflect

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

func (*RegistrarResponse) Reset

func (x *RegistrarResponse) Reset()

func (*RegistrarResponse) String

func (x *RegistrarResponse) String() string

type RegistrarServer

type RegistrarServer interface {
	RegisterDid(context.Context, *RegistrarRequest) (*RegistrarResponse, error)
	// contains filtered or unexported methods
}

RegistrarServer is the server API for Registrar service. All implementations must embed UnimplementedRegistrarServer for forward compatibility

type UnimplementedRegistrarServer

type UnimplementedRegistrarServer struct {
}

UnimplementedRegistrarServer must be embedded to have forward compatible implementations.

func (UnimplementedRegistrarServer) RegisterDid

type UnsafeRegistrarServer

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

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

Jump to

Keyboard shortcuts

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