communicationmethod

package
v0.0.0-...-2bc4271 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package communicationmethod is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommunicationMethodServiceHandler

func RegisterCommunicationMethodServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCommunicationMethodServiceHandler registers the http handlers for service CommunicationMethodService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCommunicationMethodServiceHandlerClient

func RegisterCommunicationMethodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CommunicationMethodServiceClient) error

RegisterCommunicationMethodServiceHandlerClient registers the http handlers for service CommunicationMethodService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CommunicationMethodServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CommunicationMethodServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CommunicationMethodServiceClient" to call the correct interceptors.

func RegisterCommunicationMethodServiceHandlerFromEndpoint

func RegisterCommunicationMethodServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCommunicationMethodServiceHandlerFromEndpoint is same as RegisterCommunicationMethodServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCommunicationMethodServiceHandlerServer

func RegisterCommunicationMethodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CommunicationMethodServiceServer) error

RegisterCommunicationMethodServiceHandlerServer registers the http handlers for service CommunicationMethodService to "mux". UnaryRPC :call CommunicationMethodServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterCommunicationMethodServiceServer

func RegisterCommunicationMethodServiceServer(s *grpc.Server, srv CommunicationMethodServiceServer)

Types

type CommunicationMethod

type CommunicationMethod struct {
	ContactSystemCode       string       `protobuf:"bytes,1,opt,name=contact_system_code,json=contactSystemCode,proto3" json:"contact_system_code,omitempty"`
	CommunicationMethodCode string       `` /* 132-byte string literal not displayed */
	Description             string       `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Details                 string       `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
	Status                  string       `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	FormatField             string       `protobuf:"bytes,6,opt,name=format_field,json=formatField,proto3" json:"format_field,omitempty"`
	Audit                   *audit.Audit `protobuf:"bytes,7,opt,name=audit,proto3" json:"audit,omitempty"`
	XXX_NoUnkeyedLiteral    struct{}     `json:"-"`
	XXX_unrecognized        []byte       `json:"-"`
	XXX_sizecache           int32        `json:"-"`
}

func (*CommunicationMethod) Descriptor

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

func (*CommunicationMethod) GetAudit

func (m *CommunicationMethod) GetAudit() *audit.Audit

func (*CommunicationMethod) GetCommunicationMethodCode

func (m *CommunicationMethod) GetCommunicationMethodCode() string

func (*CommunicationMethod) GetContactSystemCode

func (m *CommunicationMethod) GetContactSystemCode() string

func (*CommunicationMethod) GetDescription

func (m *CommunicationMethod) GetDescription() string

func (*CommunicationMethod) GetDetails

func (m *CommunicationMethod) GetDetails() string

func (*CommunicationMethod) GetFormatField

func (m *CommunicationMethod) GetFormatField() string

func (*CommunicationMethod) GetStatus

func (m *CommunicationMethod) GetStatus() string

func (*CommunicationMethod) ProtoMessage

func (*CommunicationMethod) ProtoMessage()

func (*CommunicationMethod) Reset

func (m *CommunicationMethod) Reset()

func (*CommunicationMethod) String

func (m *CommunicationMethod) String() string

func (*CommunicationMethod) XXX_DiscardUnknown

func (m *CommunicationMethod) XXX_DiscardUnknown()

func (*CommunicationMethod) XXX_Marshal

func (m *CommunicationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommunicationMethod) XXX_Merge

func (m *CommunicationMethod) XXX_Merge(src proto.Message)

func (*CommunicationMethod) XXX_Size

func (m *CommunicationMethod) XXX_Size() int

func (*CommunicationMethod) XXX_Unmarshal

func (m *CommunicationMethod) XXX_Unmarshal(b []byte) error

type CommunicationMethodServiceClient

CommunicationMethodServiceClient is the client API for CommunicationMethodService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCommunicationMethodServiceClient

func NewCommunicationMethodServiceClient(cc *grpc.ClientConn) CommunicationMethodServiceClient

type DoDeleteCommunicationMethodRequest

type DoDeleteCommunicationMethodRequest struct {
	ContactSystemCode       string   `protobuf:"bytes,1,opt,name=contact_system_code,json=contactSystemCode,proto3" json:"contact_system_code,omitempty"`
	CommunicationMethodCode string   `` /* 132-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*DoDeleteCommunicationMethodRequest) Descriptor

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

func (*DoDeleteCommunicationMethodRequest) GetCommunicationMethodCode

func (m *DoDeleteCommunicationMethodRequest) GetCommunicationMethodCode() string

func (*DoDeleteCommunicationMethodRequest) GetContactSystemCode

func (m *DoDeleteCommunicationMethodRequest) GetContactSystemCode() string

func (*DoDeleteCommunicationMethodRequest) ProtoMessage

func (*DoDeleteCommunicationMethodRequest) ProtoMessage()

func (*DoDeleteCommunicationMethodRequest) Reset

func (*DoDeleteCommunicationMethodRequest) String

func (*DoDeleteCommunicationMethodRequest) XXX_DiscardUnknown

func (m *DoDeleteCommunicationMethodRequest) XXX_DiscardUnknown()

func (*DoDeleteCommunicationMethodRequest) XXX_Marshal

func (m *DoDeleteCommunicationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoDeleteCommunicationMethodRequest) XXX_Merge

func (*DoDeleteCommunicationMethodRequest) XXX_Size

func (*DoDeleteCommunicationMethodRequest) XXX_Unmarshal

func (m *DoDeleteCommunicationMethodRequest) XXX_Unmarshal(b []byte) error

type DoDeleteCommunicationMethodResponse

type DoDeleteCommunicationMethodResponse struct {
	Result               bool             `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Message              *message.Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*DoDeleteCommunicationMethodResponse) Descriptor

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

func (*DoDeleteCommunicationMethodResponse) GetMessage

func (*DoDeleteCommunicationMethodResponse) GetResult

func (*DoDeleteCommunicationMethodResponse) ProtoMessage

func (*DoDeleteCommunicationMethodResponse) ProtoMessage()

func (*DoDeleteCommunicationMethodResponse) Reset

func (*DoDeleteCommunicationMethodResponse) String

func (*DoDeleteCommunicationMethodResponse) XXX_DiscardUnknown

func (m *DoDeleteCommunicationMethodResponse) XXX_DiscardUnknown()

func (*DoDeleteCommunicationMethodResponse) XXX_Marshal

func (m *DoDeleteCommunicationMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoDeleteCommunicationMethodResponse) XXX_Merge

func (*DoDeleteCommunicationMethodResponse) XXX_Size

func (*DoDeleteCommunicationMethodResponse) XXX_Unmarshal

func (m *DoDeleteCommunicationMethodResponse) XXX_Unmarshal(b []byte) error

type DoReadAllCommunicationMethodRequest

type DoReadAllCommunicationMethodRequest struct {
	ContactSystemCode    string   `protobuf:"bytes,1,opt,name=contact_system_code,json=contactSystemCode,proto3" json:"contact_system_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DoReadAllCommunicationMethodRequest) Descriptor

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

func (*DoReadAllCommunicationMethodRequest) GetContactSystemCode

func (m *DoReadAllCommunicationMethodRequest) GetContactSystemCode() string

func (*DoReadAllCommunicationMethodRequest) ProtoMessage

func (*DoReadAllCommunicationMethodRequest) ProtoMessage()

func (*DoReadAllCommunicationMethodRequest) Reset

func (*DoReadAllCommunicationMethodRequest) String

func (*DoReadAllCommunicationMethodRequest) XXX_DiscardUnknown

func (m *DoReadAllCommunicationMethodRequest) XXX_DiscardUnknown()

func (*DoReadAllCommunicationMethodRequest) XXX_Marshal

func (m *DoReadAllCommunicationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoReadAllCommunicationMethodRequest) XXX_Merge

func (*DoReadAllCommunicationMethodRequest) XXX_Size

func (*DoReadAllCommunicationMethodRequest) XXX_Unmarshal

func (m *DoReadAllCommunicationMethodRequest) XXX_Unmarshal(b []byte) error

type DoReadAllCommunicationMethodResponse

type DoReadAllCommunicationMethodResponse struct {
	CommunicationMethod  []*CommunicationMethod `protobuf:"bytes,1,rep,name=communication_method,json=communicationMethod,proto3" json:"communication_method,omitempty"`
	Message              *message.Message       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*DoReadAllCommunicationMethodResponse) Descriptor

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

func (*DoReadAllCommunicationMethodResponse) GetCommunicationMethod

func (m *DoReadAllCommunicationMethodResponse) GetCommunicationMethod() []*CommunicationMethod

func (*DoReadAllCommunicationMethodResponse) GetMessage

func (*DoReadAllCommunicationMethodResponse) ProtoMessage

func (*DoReadAllCommunicationMethodResponse) ProtoMessage()

func (*DoReadAllCommunicationMethodResponse) Reset

func (*DoReadAllCommunicationMethodResponse) String

func (*DoReadAllCommunicationMethodResponse) XXX_DiscardUnknown

func (m *DoReadAllCommunicationMethodResponse) XXX_DiscardUnknown()

func (*DoReadAllCommunicationMethodResponse) XXX_Marshal

func (m *DoReadAllCommunicationMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoReadAllCommunicationMethodResponse) XXX_Merge

func (*DoReadAllCommunicationMethodResponse) XXX_Size

func (*DoReadAllCommunicationMethodResponse) XXX_Unmarshal

func (m *DoReadAllCommunicationMethodResponse) XXX_Unmarshal(b []byte) error

type DoReadCommunicationMethodRequest

type DoReadCommunicationMethodRequest struct {
	ContactSystemCode       string   `protobuf:"bytes,1,opt,name=contact_system_code,json=contactSystemCode,proto3" json:"contact_system_code,omitempty"`
	CommunicationMethodCode string   `` /* 132-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*DoReadCommunicationMethodRequest) Descriptor

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

func (*DoReadCommunicationMethodRequest) GetCommunicationMethodCode

func (m *DoReadCommunicationMethodRequest) GetCommunicationMethodCode() string

func (*DoReadCommunicationMethodRequest) GetContactSystemCode

func (m *DoReadCommunicationMethodRequest) GetContactSystemCode() string

func (*DoReadCommunicationMethodRequest) ProtoMessage

func (*DoReadCommunicationMethodRequest) ProtoMessage()

func (*DoReadCommunicationMethodRequest) Reset

func (*DoReadCommunicationMethodRequest) String

func (*DoReadCommunicationMethodRequest) XXX_DiscardUnknown

func (m *DoReadCommunicationMethodRequest) XXX_DiscardUnknown()

func (*DoReadCommunicationMethodRequest) XXX_Marshal

func (m *DoReadCommunicationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoReadCommunicationMethodRequest) XXX_Merge

func (*DoReadCommunicationMethodRequest) XXX_Size

func (m *DoReadCommunicationMethodRequest) XXX_Size() int

func (*DoReadCommunicationMethodRequest) XXX_Unmarshal

func (m *DoReadCommunicationMethodRequest) XXX_Unmarshal(b []byte) error

type DoReadCommunicationMethodResponse

type DoReadCommunicationMethodResponse struct {
	CommunicationMethod  *CommunicationMethod `protobuf:"bytes,1,opt,name=communication_method,json=communicationMethod,proto3" json:"communication_method,omitempty"`
	Message              *message.Message     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*DoReadCommunicationMethodResponse) Descriptor

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

func (*DoReadCommunicationMethodResponse) GetCommunicationMethod

func (m *DoReadCommunicationMethodResponse) GetCommunicationMethod() *CommunicationMethod

func (*DoReadCommunicationMethodResponse) GetMessage

func (*DoReadCommunicationMethodResponse) ProtoMessage

func (*DoReadCommunicationMethodResponse) ProtoMessage()

func (*DoReadCommunicationMethodResponse) Reset

func (*DoReadCommunicationMethodResponse) String

func (*DoReadCommunicationMethodResponse) XXX_DiscardUnknown

func (m *DoReadCommunicationMethodResponse) XXX_DiscardUnknown()

func (*DoReadCommunicationMethodResponse) XXX_Marshal

func (m *DoReadCommunicationMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoReadCommunicationMethodResponse) XXX_Merge

func (*DoReadCommunicationMethodResponse) XXX_Size

func (m *DoReadCommunicationMethodResponse) XXX_Size() int

func (*DoReadCommunicationMethodResponse) XXX_Unmarshal

func (m *DoReadCommunicationMethodResponse) XXX_Unmarshal(b []byte) error

type DoSaveCommunicationMethodRequest

type DoSaveCommunicationMethodRequest struct {
	CommunicationMethod  *CommunicationMethod `protobuf:"bytes,1,opt,name=communication_method,json=communicationMethod,proto3" json:"communication_method,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*DoSaveCommunicationMethodRequest) Descriptor

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

func (*DoSaveCommunicationMethodRequest) GetCommunicationMethod

func (m *DoSaveCommunicationMethodRequest) GetCommunicationMethod() *CommunicationMethod

func (*DoSaveCommunicationMethodRequest) ProtoMessage

func (*DoSaveCommunicationMethodRequest) ProtoMessage()

func (*DoSaveCommunicationMethodRequest) Reset

func (*DoSaveCommunicationMethodRequest) String

func (*DoSaveCommunicationMethodRequest) XXX_DiscardUnknown

func (m *DoSaveCommunicationMethodRequest) XXX_DiscardUnknown()

func (*DoSaveCommunicationMethodRequest) XXX_Marshal

func (m *DoSaveCommunicationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoSaveCommunicationMethodRequest) XXX_Merge

func (*DoSaveCommunicationMethodRequest) XXX_Size

func (m *DoSaveCommunicationMethodRequest) XXX_Size() int

func (*DoSaveCommunicationMethodRequest) XXX_Unmarshal

func (m *DoSaveCommunicationMethodRequest) XXX_Unmarshal(b []byte) error

type DoSaveCommunicationMethodResponse

type DoSaveCommunicationMethodResponse struct {
	Result               bool             `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Message              *message.Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*DoSaveCommunicationMethodResponse) Descriptor

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

func (*DoSaveCommunicationMethodResponse) GetMessage

func (*DoSaveCommunicationMethodResponse) GetResult

func (m *DoSaveCommunicationMethodResponse) GetResult() bool

func (*DoSaveCommunicationMethodResponse) ProtoMessage

func (*DoSaveCommunicationMethodResponse) ProtoMessage()

func (*DoSaveCommunicationMethodResponse) Reset

func (*DoSaveCommunicationMethodResponse) String

func (*DoSaveCommunicationMethodResponse) XXX_DiscardUnknown

func (m *DoSaveCommunicationMethodResponse) XXX_DiscardUnknown()

func (*DoSaveCommunicationMethodResponse) XXX_Marshal

func (m *DoSaveCommunicationMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoSaveCommunicationMethodResponse) XXX_Merge

func (*DoSaveCommunicationMethodResponse) XXX_Size

func (m *DoSaveCommunicationMethodResponse) XXX_Size() int

func (*DoSaveCommunicationMethodResponse) XXX_Unmarshal

func (m *DoSaveCommunicationMethodResponse) XXX_Unmarshal(b []byte) error

type UnimplementedCommunicationMethodServiceServer

type UnimplementedCommunicationMethodServiceServer struct {
}

UnimplementedCommunicationMethodServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCommunicationMethodServiceServer) DoRead

func (*UnimplementedCommunicationMethodServiceServer) DoSave

Jump to

Keyboard shortcuts

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