disposable

package
v0.0.0-...-25a66cf Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package disposable is a generated protocol buffer package.

It is generated from these files:

protos/errors.proto
protos/service.proto

It has these top-level messages:

Error
DisposableRequest
DisposableResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDisposableServiceServer

func RegisterDisposableServiceServer(s *grpc.Server, srv DisposableServiceServer)

Types

type DisposableRequest

type DisposableRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
}

func (*DisposableRequest) Descriptor

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

func (*DisposableRequest) ProtoMessage

func (*DisposableRequest) ProtoMessage()

func (*DisposableRequest) Reset

func (m *DisposableRequest) Reset()

func (*DisposableRequest) String

func (m *DisposableRequest) String() string

type DisposableResponse

type DisposableResponse struct {
	Status    bool   `protobuf:"varint,1,opt,name=status" json:"status"`
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId" json:"request_id,omitempty"`
	Error     *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
}

func (*DisposableResponse) Descriptor

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

func (*DisposableResponse) GetError

func (m *DisposableResponse) GetError() *Error

func (*DisposableResponse) ProtoMessage

func (*DisposableResponse) ProtoMessage()

func (*DisposableResponse) Reset

func (m *DisposableResponse) Reset()

func (*DisposableResponse) String

func (m *DisposableResponse) String() string

type DisposableServiceClient

type DisposableServiceClient interface {
	Verify(ctx context.Context, in *DisposableRequest, opts ...grpc.CallOption) (*DisposableResponse, error)
}

func NewDisposableServiceClient

func NewDisposableServiceClient(cc *grpc.ClientConn) DisposableServiceClient

type DisposableServiceServer

type DisposableServiceServer interface {
	Verify(context.Context, *DisposableRequest) (*DisposableResponse, error)
}

type Error

type Error struct {
	Message string            `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Type    string            `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
	Info    map[string]string `` /* 128-byte string literal not displayed */
}

func NewError

func NewError(msg, errt string, err error) *Error

NewError - Will establish new error based on provided information. Function is here to provide unification layer.

func NewErrorFromInfo

func NewErrorFromInfo(err *Error) *Error

NewErrorFromInfo -

func (*Error) Descriptor

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

func (*Error) Error

func (e *Error) Error() string

Error - Get error message. Making it compatible with type error

func (*Error) GetInfo

func (m *Error) GetInfo() map[string]string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

Jump to

Keyboard shortcuts

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