service

package
v0.0.0-...-3909f8e Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPost

func AddPost(ctx context.Context, input *model.AddPostInput) (*model.Post, error)

func DeletePost

func DeletePost(ctx context.Context, input *model.DeletePostInput) (*model.Post, error)

func EditPost

func EditPost(ctx context.Context, input *model.EditPostInput) (*model.Post, error)

func GetPost

func GetPost(ctx context.Context, input *model.GetPostInput) (*model.Post, error)

func GetPostsByUsername

func GetPostsByUsername(ctx context.Context, input *model.GetPostsByUsernameInput) ([]*model.Post, error)

func GetUserByUsername

func GetUserByUsername(ctx context.Context, input *model.GetUserByUsernameInput) (*model.User, error)

func GetUserInfo

func GetUserInfo(ctx context.Context) (*model.User, error)

func Login

func Login(ctx context.Context, input *model.LoginInput) (*model.AuthOutput, error)

func Register

func Register(ctx context.Context, input *model.RegisterInput) (*model.AuthOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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