common

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommonServiceEndpoints

func NewCommonServiceEndpoints() []*api.Endpoint

func RegisterCommonServiceHandler

func RegisterCommonServiceHandler(s server.Server, hdlr CommonServiceHandler, opts ...server.HandlerOption) error

Types

type CommonService

type CommonService interface {
	Version(ctx context.Context, in *empty.Empty, opts ...client.CallOption) (*VersionResponse, error)
}

func NewCommonService

func NewCommonService(name string, c client.Client) CommonService

type CommonServiceHandler

type CommonServiceHandler interface {
	Version(context.Context, *empty.Empty, *VersionResponse) error
}

type VersionResponse

type VersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
}

func (*VersionResponse) Descriptor

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

func (*VersionResponse) GetVersion

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

func (*VersionResponse) Validate

func (m *VersionResponse) Validate() error

Validate checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*VersionResponse) XXX_DiscardUnknown

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal

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

func (*VersionResponse) XXX_Merge

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

func (*VersionResponse) XXX_Size

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal

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

type VersionResponseValidationError

type VersionResponseValidationError struct {
	// contains filtered or unexported fields
}

VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.

func (VersionResponseValidationError) Cause

Cause function returns cause value.

func (VersionResponseValidationError) Error

Error satisfies the builtin error interface

func (VersionResponseValidationError) ErrorName

func (e VersionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (VersionResponseValidationError) Field

Field function returns field value.

func (VersionResponseValidationError) Key

Key function returns key value.

func (VersionResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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