Documentation ¶
Index ¶
- Variables
- func RegisterApplicationServiceServer(s grpc1.Server, srv ApplicationServiceServer)
- type ApplicationServer
- type ApplicationServiceClient
- type ApplicationServiceServer
- type Database
- type DeleteAppRequest
- func (*DeleteAppRequest) Descriptor() ([]byte, []int)
- func (m *DeleteAppRequest) GetAppId() string
- func (m *DeleteAppRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteAppRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteAppRequest) ProtoMessage()
- func (m *DeleteAppRequest) Reset()
- func (m *DeleteAppRequest) Size() (n int)
- func (m *DeleteAppRequest) String() string
- func (m *DeleteAppRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteAppRequest) XXX_DiscardUnknown()
- func (m *DeleteAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteAppRequest) XXX_Merge(src proto.Message)
- func (m *DeleteAppRequest) XXX_Size() int
- func (m *DeleteAppRequest) XXX_Unmarshal(b []byte) error
- type DeleteApplicationRequest
- type Handler
- type UnimplementedApplicationServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterApplicationServiceServer ¶
func RegisterApplicationServiceServer(s grpc1.Server, srv ApplicationServiceServer)
Types ¶
type ApplicationServer ¶
type ApplicationServer struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(handler *Handler) *ApplicationServer
func NewServerFromEnvVariables ¶
func NewServerFromEnvVariables(db Database) *ApplicationServer
func (ApplicationServer) DeleteApp ¶
func (a ApplicationServer) DeleteApp(ctx context.Context, request *DeleteAppRequest) (*emptypb.Empty, error)
type ApplicationServiceClient ¶
type ApplicationServiceClient interface { // DeleteApp allows to delete an application DeleteApp(ctx context.Context, in *DeleteAppRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ApplicationServiceClient is the client API for ApplicationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewApplicationServiceClient ¶
func NewApplicationServiceClient(cc grpc1.ClientConn) ApplicationServiceClient
type ApplicationServiceServer ¶
type ApplicationServiceServer interface { // DeleteApp allows to delete an application DeleteApp(context.Context, *DeleteAppRequest) (*emptypb.Empty, error) }
ApplicationServiceServer is the server API for ApplicationService service.
type DeleteAppRequest ¶
type DeleteAppRequest struct {
AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
}
func (*DeleteAppRequest) Descriptor ¶
func (*DeleteAppRequest) Descriptor() ([]byte, []int)
func (*DeleteAppRequest) GetAppId ¶
func (m *DeleteAppRequest) GetAppId() string
func (*DeleteAppRequest) Marshal ¶
func (m *DeleteAppRequest) Marshal() (dAtA []byte, err error)
func (*DeleteAppRequest) MarshalToSizedBuffer ¶
func (m *DeleteAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteAppRequest) ProtoMessage ¶
func (*DeleteAppRequest) ProtoMessage()
func (*DeleteAppRequest) Reset ¶
func (m *DeleteAppRequest) Reset()
func (*DeleteAppRequest) Size ¶
func (m *DeleteAppRequest) Size() (n int)
func (*DeleteAppRequest) String ¶
func (m *DeleteAppRequest) String() string
func (*DeleteAppRequest) Unmarshal ¶
func (m *DeleteAppRequest) Unmarshal(dAtA []byte) error
func (*DeleteAppRequest) XXX_DiscardUnknown ¶
func (m *DeleteAppRequest) XXX_DiscardUnknown()
func (*DeleteAppRequest) XXX_Marshal ¶
func (m *DeleteAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteAppRequest) XXX_Merge ¶
func (m *DeleteAppRequest) XXX_Merge(src proto.Message)
func (*DeleteAppRequest) XXX_Size ¶
func (m *DeleteAppRequest) XXX_Size() int
func (*DeleteAppRequest) XXX_Unmarshal ¶
func (m *DeleteAppRequest) XXX_Unmarshal(b []byte) error
type DeleteApplicationRequest ¶
func NewDeleteApplicationRequest ¶
func NewDeleteApplicationRequest(desmosAddress string, appID string) *DeleteApplicationRequest
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler allows to build a new Handler instance
func (*Handler) HandleDeleteApplicationRequest ¶
func (h *Handler) HandleDeleteApplicationRequest(req *DeleteApplicationRequest) error
HandleDeleteApplicationRequest handles the request to delete an application
type UnimplementedApplicationServiceServer ¶
type UnimplementedApplicationServiceServer struct { }
UnimplementedApplicationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedApplicationServiceServer) DeleteApp ¶
func (*UnimplementedApplicationServiceServer) DeleteApp(ctx context.Context, req *DeleteAppRequest) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.