serviceHandler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is used to handle all user main service functions

func New

func New() *Handler

New returns a new service handler

func (Handler) Add

func (handler Handler) Add(ctx context.Context, request *proto.Data) (*proto.AddResponse, error)

Add is used to handle Add function

func (Handler) Auth

func (handler Handler) Auth(ctx context.Context, request *proto.AuthRequest) (*proto.AuthResponse, error)

Auth is used to handle Auth function

func (Handler) Get

func (handler Handler) Get(ctx context.Context, request *proto.GetRequest) (*proto.Data, error)

Get is used to handle Get function

func (Handler) Update

func (handler Handler) Update(ctx context.Context, request *proto.UpdateRequest) (*proto.UpdateResponse, error)

Update is used to handler Update function

func (Handler) Validate added in v0.0.5

func (handler Handler) Validate(ctx context.Context, request *proto.Data) (*proto.ValidateResponse, error)

Validate is used to handle Validate function

Jump to

Keyboard shortcuts

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