Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCredentialServer(s grpc.ServiceRegistrar, srv CredentialServer)
- type CreateCredentialRequest
- func (*CreateCredentialRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCredentialRequest) GetName() string
- func (x *CreateCredentialRequest) GetType() int32
- func (*CreateCredentialRequest) ProtoMessage()
- func (x *CreateCredentialRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCredentialRequest) Reset()
- func (x *CreateCredentialRequest) String() string
- type CreateCredentialResponse
- func (*CreateCredentialResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCredentialResponse) GetId() int32
- func (x *CreateCredentialResponse) GetName() string
- func (x *CreateCredentialResponse) GetType() int32
- func (*CreateCredentialResponse) ProtoMessage()
- func (x *CreateCredentialResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCredentialResponse) Reset()
- func (x *CreateCredentialResponse) String() string
- type Credential
- func (*Credential) Descriptor() ([]byte, []int)deprecated
- func (x *Credential) GetId() int64
- func (x *Credential) GetName() string
- func (x *Credential) GetType() int32
- func (*Credential) ProtoMessage()
- func (x *Credential) ProtoReflect() protoreflect.Message
- func (x *Credential) Reset()
- func (x *Credential) String() string
- type CredentialClient
- type CredentialListRequest
- func (*CredentialListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialListRequest) GetName() string
- func (x *CredentialListRequest) GetPage() int32
- func (x *CredentialListRequest) GetSize() int32
- func (*CredentialListRequest) ProtoMessage()
- func (x *CredentialListRequest) ProtoReflect() protoreflect.Message
- func (x *CredentialListRequest) Reset()
- func (x *CredentialListRequest) String() string
- type CredentialListResponse
- func (*CredentialListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialListResponse) GetList() []*Credential
- func (x *CredentialListResponse) GetTotal() int32
- func (*CredentialListResponse) ProtoMessage()
- func (x *CredentialListResponse) ProtoReflect() protoreflect.Message
- func (x *CredentialListResponse) Reset()
- func (x *CredentialListResponse) String() string
- type CredentialServer
- type CredentialVersionResponse
- func (*CredentialVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialVersionResponse) GetVersion() string
- func (*CredentialVersionResponse) ProtoMessage()
- func (x *CredentialVersionResponse) ProtoReflect() protoreflect.Message
- func (x *CredentialVersionResponse) Reset()
- func (x *CredentialVersionResponse) String() string
- type Empty
- type Int32Id
- type UnimplementedCredentialServer
- func (UnimplementedCredentialServer) CreateCredential(context.Context, *CreateCredentialRequest) (*CreateCredentialResponse, error)
- func (UnimplementedCredentialServer) CredentialDetail(context.Context, *Int32Id) (*Credential, error)
- func (UnimplementedCredentialServer) CredentialList(context.Context, *CredentialListRequest) (*CredentialListResponse, error)
- func (UnimplementedCredentialServer) CredentialVersion(context.Context, *Empty) (*CredentialVersionResponse, error)
- type UnsafeCredentialServer
Constants ¶
const ( Credential_CredentialVersion_FullMethodName = "/credentialpb.credential/CredentialVersion" Credential_CreateCredential_FullMethodName = "/credentialpb.credential/CreateCredential" Credential_CredentialList_FullMethodName = "/credentialpb.credential/CredentialList" Credential_CredentialDetail_FullMethodName = "/credentialpb.credential/CredentialDetail" )
Variables ¶
var Credential_ServiceDesc = grpc.ServiceDesc{ ServiceName: "credentialpb.credential", HandlerType: (*CredentialServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CredentialVersion", Handler: _Credential_CredentialVersion_Handler, }, { MethodName: "CreateCredential", Handler: _Credential_CreateCredential_Handler, }, { MethodName: "CredentialList", Handler: _Credential_CredentialList_Handler, }, { MethodName: "CredentialDetail", Handler: _Credential_CredentialDetail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "credential.proto", }
Credential_ServiceDesc is the grpc.ServiceDesc for Credential service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_credential_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCredentialServer ¶
func RegisterCredentialServer(s grpc.ServiceRegistrar, srv CredentialServer)
Types ¶
type CreateCredentialRequest ¶
type CreateCredentialRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CreateCredentialRequest) Descriptor
deprecated
func (*CreateCredentialRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCredentialRequest.ProtoReflect.Descriptor instead.
func (*CreateCredentialRequest) GetName ¶
func (x *CreateCredentialRequest) GetName() string
func (*CreateCredentialRequest) GetType ¶
func (x *CreateCredentialRequest) GetType() int32
func (*CreateCredentialRequest) ProtoMessage ¶
func (*CreateCredentialRequest) ProtoMessage()
func (*CreateCredentialRequest) ProtoReflect ¶
func (x *CreateCredentialRequest) ProtoReflect() protoreflect.Message
func (*CreateCredentialRequest) Reset ¶
func (x *CreateCredentialRequest) Reset()
func (*CreateCredentialRequest) String ¶
func (x *CreateCredentialRequest) String() string
type CreateCredentialResponse ¶
type CreateCredentialResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CreateCredentialResponse) Descriptor
deprecated
func (*CreateCredentialResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCredentialResponse.ProtoReflect.Descriptor instead.
func (*CreateCredentialResponse) GetId ¶
func (x *CreateCredentialResponse) GetId() int32
func (*CreateCredentialResponse) GetName ¶
func (x *CreateCredentialResponse) GetName() string
func (*CreateCredentialResponse) GetType ¶
func (x *CreateCredentialResponse) GetType() int32
func (*CreateCredentialResponse) ProtoMessage ¶
func (*CreateCredentialResponse) ProtoMessage()
func (*CreateCredentialResponse) ProtoReflect ¶
func (x *CreateCredentialResponse) ProtoReflect() protoreflect.Message
func (*CreateCredentialResponse) Reset ¶
func (x *CreateCredentialResponse) Reset()
func (*CreateCredentialResponse) String ¶
func (x *CreateCredentialResponse) String() string
type Credential ¶
type Credential struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Credential) Descriptor
deprecated
func (*Credential) Descriptor() ([]byte, []int)
Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func (*Credential) GetId ¶
func (x *Credential) GetId() int64
func (*Credential) GetName ¶
func (x *Credential) GetName() string
func (*Credential) GetType ¶
func (x *Credential) GetType() int32
func (*Credential) ProtoMessage ¶
func (*Credential) ProtoMessage()
func (*Credential) ProtoReflect ¶
func (x *Credential) ProtoReflect() protoreflect.Message
func (*Credential) Reset ¶
func (x *Credential) Reset()
func (*Credential) String ¶
func (x *Credential) String() string
type CredentialClient ¶
type CredentialClient interface { CredentialVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CredentialVersionResponse, error) CreateCredential(ctx context.Context, in *CreateCredentialRequest, opts ...grpc.CallOption) (*CreateCredentialResponse, error) CredentialList(ctx context.Context, in *CredentialListRequest, opts ...grpc.CallOption) (*CredentialListResponse, error) CredentialDetail(ctx context.Context, in *Int32Id, opts ...grpc.CallOption) (*Credential, error) }
CredentialClient is the client API for Credential 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 NewCredentialClient ¶
func NewCredentialClient(cc grpc.ClientConnInterface) CredentialClient
type CredentialListRequest ¶
type CredentialListRequest struct { // page options Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // filter by name Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CredentialListRequest) Descriptor
deprecated
func (*CredentialListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CredentialListRequest.ProtoReflect.Descriptor instead.
func (*CredentialListRequest) GetName ¶
func (x *CredentialListRequest) GetName() string
func (*CredentialListRequest) GetPage ¶
func (x *CredentialListRequest) GetPage() int32
func (*CredentialListRequest) GetSize ¶
func (x *CredentialListRequest) GetSize() int32
func (*CredentialListRequest) ProtoMessage ¶
func (*CredentialListRequest) ProtoMessage()
func (*CredentialListRequest) ProtoReflect ¶
func (x *CredentialListRequest) ProtoReflect() protoreflect.Message
func (*CredentialListRequest) Reset ¶
func (x *CredentialListRequest) Reset()
func (*CredentialListRequest) String ¶
func (x *CredentialListRequest) String() string
type CredentialListResponse ¶
type CredentialListResponse struct { List []*Credential `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*CredentialListResponse) Descriptor
deprecated
func (*CredentialListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CredentialListResponse.ProtoReflect.Descriptor instead.
func (*CredentialListResponse) GetList ¶
func (x *CredentialListResponse) GetList() []*Credential
func (*CredentialListResponse) GetTotal ¶
func (x *CredentialListResponse) GetTotal() int32
func (*CredentialListResponse) ProtoMessage ¶
func (*CredentialListResponse) ProtoMessage()
func (*CredentialListResponse) ProtoReflect ¶
func (x *CredentialListResponse) ProtoReflect() protoreflect.Message
func (*CredentialListResponse) Reset ¶
func (x *CredentialListResponse) Reset()
func (*CredentialListResponse) String ¶
func (x *CredentialListResponse) String() string
type CredentialServer ¶
type CredentialServer interface { CredentialVersion(context.Context, *Empty) (*CredentialVersionResponse, error) CreateCredential(context.Context, *CreateCredentialRequest) (*CreateCredentialResponse, error) CredentialList(context.Context, *CredentialListRequest) (*CredentialListResponse, error) CredentialDetail(context.Context, *Int32Id) (*Credential, error) // contains filtered or unexported methods }
CredentialServer is the server API for Credential service. All implementations must embed UnimplementedCredentialServer for forward compatibility
type CredentialVersionResponse ¶
type CredentialVersionResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*CredentialVersionResponse) Descriptor
deprecated
func (*CredentialVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CredentialVersionResponse.ProtoReflect.Descriptor instead.
func (*CredentialVersionResponse) GetVersion ¶
func (x *CredentialVersionResponse) GetVersion() string
func (*CredentialVersionResponse) ProtoMessage ¶
func (*CredentialVersionResponse) ProtoMessage()
func (*CredentialVersionResponse) ProtoReflect ¶
func (x *CredentialVersionResponse) ProtoReflect() protoreflect.Message
func (*CredentialVersionResponse) Reset ¶
func (x *CredentialVersionResponse) Reset()
func (*CredentialVersionResponse) String ¶
func (x *CredentialVersionResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Int32Id ¶
type Int32Id struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Int32Id) Descriptor
deprecated
func (*Int32Id) ProtoMessage ¶
func (*Int32Id) ProtoMessage()
func (*Int32Id) ProtoReflect ¶
func (x *Int32Id) ProtoReflect() protoreflect.Message
type UnimplementedCredentialServer ¶
type UnimplementedCredentialServer struct { }
UnimplementedCredentialServer must be embedded to have forward compatible implementations.
func (UnimplementedCredentialServer) CreateCredential ¶
func (UnimplementedCredentialServer) CreateCredential(context.Context, *CreateCredentialRequest) (*CreateCredentialResponse, error)
func (UnimplementedCredentialServer) CredentialDetail ¶
func (UnimplementedCredentialServer) CredentialDetail(context.Context, *Int32Id) (*Credential, error)
func (UnimplementedCredentialServer) CredentialList ¶
func (UnimplementedCredentialServer) CredentialList(context.Context, *CredentialListRequest) (*CredentialListResponse, error)
func (UnimplementedCredentialServer) CredentialVersion ¶
func (UnimplementedCredentialServer) CredentialVersion(context.Context, *Empty) (*CredentialVersionResponse, error)
type UnsafeCredentialServer ¶
type UnsafeCredentialServer interface {
// contains filtered or unexported methods
}
UnsafeCredentialServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CredentialServer will result in compilation errors.